Search in sources :

Example 1 with HBaseClient

use of org.apache.metron.hbase.client.HBaseClient in project metron by apache.

the class HBaseBolt method prepare.

@Override
public void prepare(Map map, TopologyContext topologyContext, OutputCollector collector) {
    this.collector = collector;
    this.batchHelper = new BatchHelper(batchSize, collector);
    TableProvider provider = this.tableProvider == null ? getTableProvider(tableProviderClazzName) : this.tableProvider;
    hbaseClient = new HBaseClient(provider, HBaseConfiguration.create(), tableName);
}
Also used : HBaseClient(org.apache.metron.hbase.client.HBaseClient) TableProvider(org.apache.metron.hbase.TableProvider) HTableProvider(org.apache.metron.hbase.HTableProvider)

Aggregations

HTableProvider (org.apache.metron.hbase.HTableProvider)1 TableProvider (org.apache.metron.hbase.TableProvider)1 HBaseClient (org.apache.metron.hbase.client.HBaseClient)1