outputFileName = Boolean.parseBoolean((String) cl.getValue("--outputfilename"));
if (cl.hasOption("--outputpath")) {
outputPath = (String) cl.getValue("--outputpath");
}
FileSystem hdfs = FileSystem.get(new Configuration());
RemoteIterator<LocatedFileStatus> itr = hdfs.listFiles(new Path(filePath), true);
while (itr.hasNext()) {
LocatedFileStatus status = itr.next();
String fileName = status.getPath().getName();
if (fileName.substring(fileName.lastIndexOf(".") + 1).contains("json")) {
createSequenceFileFromJSON(hdfs.open(status.getPath()), fileName);