Search in sources :

Example 1 with NoopAccessTracker

use of org.apache.metron.enrichment.lookup.accesstracker.NoopAccessTracker in project metron by apache.

the class SimpleHBaseAdapter method initializeAdapter.

@Override
public boolean initializeAdapter(Map<String, Object> configuration) {
    String hbaseTable = config.getHBaseTable();
    Configuration hbaseConfig = HBaseConfiguration.create();
    try {
        lookup = new EnrichmentLookup(config.getProvider().getTable(hbaseConfig, hbaseTable), config.getHBaseCF(), new NoopAccessTracker());
    } catch (IOException e) {
        LOG.error("Unable to initialize adapter: {}", e.getMessage(), e);
        return false;
    }
    return true;
}
Also used : EnrichmentLookup(org.apache.metron.enrichment.lookup.EnrichmentLookup) HBaseConfiguration(org.apache.hadoop.hbase.HBaseConfiguration) Configuration(org.apache.hadoop.conf.Configuration) IOException(java.io.IOException) NoopAccessTracker(org.apache.metron.enrichment.lookup.accesstracker.NoopAccessTracker)

Aggregations

IOException (java.io.IOException)1 Configuration (org.apache.hadoop.conf.Configuration)1 HBaseConfiguration (org.apache.hadoop.hbase.HBaseConfiguration)1 EnrichmentLookup (org.apache.metron.enrichment.lookup.EnrichmentLookup)1 NoopAccessTracker (org.apache.metron.enrichment.lookup.accesstracker.NoopAccessTracker)1