Examples of NutchJobConf


Examples of org.apache.nutch.util.NutchJobConf

    }

    public void testRepositoryCache() {
      Configuration config = NutchConfiguration.create();
      PluginRepository repo = PluginRepository.get(config);
      JobConf job = new NutchJobConf(config);
      PluginRepository repo1 = PluginRepository.get(job);
      assertTrue(repo == repo1);
      // now construct a config without UUID
      config = new Configuration();
      config.addResource("nutch-default.xml");
      config.addResource("nutch-site.xml");
      repo = PluginRepository.get(config);
      job = new NutchJobConf(config);
      repo1 = PluginRepository.get(job);
      assertTrue(repo1 != repo);
    }
View Full Code Here

Examples of org.apache.nutch.util.NutchJobConf

    @Test
    public void testRepositoryCache() {
      Configuration config = NutchConfiguration.create();
      PluginRepository repo = PluginRepository.get(config);
      JobConf job = new NutchJobConf(config);
      PluginRepository repo1 = PluginRepository.get(job);
      assertTrue(repo == repo1);
      // now construct a config without UUID
      config = new Configuration();
      config.addResource("nutch-default.xml");
      config.addResource("nutch-site.xml");
      repo = PluginRepository.get(config);
      job = new NutchJobConf(config);
      repo1 = PluginRepository.get(job);
      assertTrue(repo1 != repo);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.