String output = (args.length > 1 ? args[1] : "");
GenericDataSource<TableInputFormat> source = new GenericDataSource<TableInputFormat>(new MyTableInputFormat(), "HBase Input");
source.setParameter(TableInputFormat.INPUT_TABLE, "twitter");
source.setParameter(TableInputFormat.CONFIG_LOCATION, "/etc/hbase/conf/hbase-site.xml");
FileDataSink out = new FileDataSink(new CsvOutputFormat(), output, source, "HBase String dump");
CsvOutputFormat.configureRecordFormat(out)
.recordDelimiter('\n')
.fieldDelimiter(' ')
.field(StringValue.class, 0)
.field(StringValue.class, 1)