Program: 150292
Project: 150292
Buggy source:
public static void main(String[] args){
  OptionFactory optFactory=OptionFactory.getInstance();
  Options options=KafkaConsumer.getOptions();
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str").required());
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",false,"String_Node_Str"));
  CommandLineParser parser=new GnuParser();
  ShutdownHook sh=ShutdownHook.getInstance();
  try {
    CommandLine cmd=parser.parse(options,args);
    final KafkaConsumer consumer=KafkaConsumer.fromOptions(cmd);
    sh.addFirst(consumer);
    SinkConfiguration sinkConfig=new SinkConfiguration();
    if (cmd.hasOption("String_Node_Str")) {
      sinkConfig.setInt("String_Node_Str",Integer.parseInt(cmd.getOptionValue("String_Node_Str")));
    }
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str"));
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setBoolean("String_Node_Str",Boolean.parseBoolean(cmd.getOptionValue("String_Node_Str","String_Node_Str")));
    KeyValueSinkFactory sinkFactory=KeyValueSinkFactory.getInstance(HBaseSink.class,sinkConfig);
    sh.addLast(sinkFactory);
    consumer.setSinkFactory(sinkFactory);
    MetricsManager.getInstance();
    consumer.poll();
  }
 catch (  ParseException e) {
    LOG.error("String_Node_Str",e);
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(KafkaHBaseConsumer.class.getName(),options);
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  OptionFactory optFactory=OptionFactory.getInstance();
  Options options=KafkaConsumer.getOptions();
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str").required());
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",false,"String_Node_Str"));
  CommandLineParser parser=new GnuParser();
  ShutdownHook sh=ShutdownHook.getInstance();
  try {
    CommandLine cmd=parser.parse(options,args);
    final KafkaConsumer consumer=KafkaConsumer.fromOptions(cmd);
    sh.addFirst(consumer);
    SinkConfiguration sinkConfig=new SinkConfiguration();
    if (cmd.hasOption("String_Node_Str")) {
      sinkConfig.setInt("String_Node_Str",Integer.parseInt(cmd.getOptionValue("String_Node_Str")));
    }
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str"));
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setBoolean("String_Node_Str",cmd.hasOption("String_Node_Str"));
    KeyValueSinkFactory sinkFactory=KeyValueSinkFactory.getInstance(HBaseSink.class,sinkConfig);
    sh.addLast(sinkFactory);
    consumer.setSinkFactory(sinkFactory);
    MetricsManager.getInstance();
    consumer.poll();
  }
 catch (  ParseException e) {
    LOG.error("String_Node_Str",e);
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(KafkaHBaseConsumer.class.getName(),options);
  }
}