Event e = EventBuilder.withBody(Bytes.toBytes(valBase + "-" + i));
channel.put(e);
}
tx.commit();
tx.close();
Status status = Status.READY;
while(status != Status.BACKOFF){
status = sink.process();
}
sink.stop();
HTable table = new HTable(conf, tableName);