OptionParser parser=new OptionParser(DiffFactsOptions.class);
applicationContext.getAutowireCapableBeanFactory().autowireBean(parser);
DiffFactsOptions o= (DiffFactsOptions) parser.parse(Lists.newArrayList(strings));
if (o.left.isEmpty())
throw new UsageException("you did not specify a value for -left");
if (o.right.isEmpty())
throw new UsageException("you did not specify a value for -right");
if (o.output.isEmpty())
throw new UsageException("you did not specify a value for -output");
conf.set("mapred.compress.map.output", "true");
conf.set("mapred.output.compression.type", "BLOCK");
conf.set("mapred.map.output.compression.codec", "org.apache.hadoop.io.compress.GzipCodec");
conf.set(SetJoinMapper.INPUTS+".1", Joiner.on(",").join(o.left));