throw new IllegalArgumentException(
"usage: customdfs(\"[(hdfs|file|s3n|...)://namenode[:port]]/path\", \"format\")");
}
String format = (args.length == 1) ? null : args[1];
OutputFormat fmt;
try {
fmt = FormatFactory.get().getOutputFormat(format);
} catch (FlumeSpecException e) {
LOG.error("failed to load format " + format, e);
throw new IllegalArgumentException("failed to load format " + format);