*/
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]");