Package org.terrier.utility.io.HadoopPlugin

Examples of org.terrier.utility.io.HadoopPlugin.JobFactory


   */
  public static void main(String[] args) throws Exception
    {
        if (args.length == 2 && args[0].equals("--finish"))
        {
            final JobFactory jf = HadoopPlugin.getJobFactory("HOD-TerrierIndexing");
            if (jf == null)
                throw new Exception("Could not get JobFactory from HadoopPlugin");
            try{
              finish(ApplicationSetup.TERRIER_INDEX_PATH, Integer.parseInt(args[1]), jf);
            } catch (Exception e) {
              logger.error("Couldn't finish index", e);
            } finally {
              jf.close();
            }
        }
        else
        {
          System.err.println("Usage: Hadoop_BasicSinglePassIndexer [--finish numberOfReduceTasks]");
View Full Code Here


    assertNotSame(3014, jc2.getMaxMapAttempts());
  }
 
  @Test public void testNotGlobalConfTwoSessions() throws Exception
  {
    JobFactory jf1 = HadoopPlugin.getJobFactory("session1");
    JobConf jc1 = jf1.newJob();
       
    JobFactory jf2 = HadoopPlugin.getJobFactory("session2");
    JobConf jc2 = jf2.newJob();
   
    checkTwoJC(jc1, jc2);
  }
View Full Code Here

    checkTwoJC(jc1, jc2);
  }
 
  @Test public void testNotGlobalConfOneSession() throws Exception
  {
    JobFactory jf = HadoopPlugin.getJobFactory("session1");
    JobConf jc1 = jf.newJob();
    JobConf jc2 = jf.newJob();
   
    checkTwoJC(jc1, jc2);
  }
View Full Code Here

TOP

Related Classes of org.terrier.utility.io.HadoopPlugin.JobFactory

Copyright © 2018 www.massapicom. 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.