SequenceFilesFromDirectory extends AbstractJob { public static void main(String[] args) throws Exception { ToolRunner.run(new SequenceFilesFromDirectory(), args); }  static void main(String[] args); @Override int run(String[] args);  }
@Test public void testSequenceFileFromDirectoryBasic() throws Exception { Configuration conf = new Configuration(); FileSystem fs = FileSystem.get(conf); Path tmpDir = this.getTestTempDirPath(); Path inputDir = new Path(tmpDir, "inputDir"); fs.mkdirs(inputDir); Path outputDir = new Path(tmpDir, "outputDir"); createFilesFromArrays(conf, inputDir, DATA1); SequenceFilesFromDirectory.main(new String[] { "--input", inputDir.toString(), "--output", outputDir.toString(), "--chunkSize", "64", "--charset", Charsets.UTF_8.name(), "--keyPrefix", "UID"}); checkChunkFiles(conf, outputDir, DATA1, "UID"); }