public void upgradePayloadTable(String tableName) throws IOException { upgradeCoProcessor(tableUtil.createHTableId(NamespaceId.SYSTEM, tableName), tableUtil.getPayloadTableRegionObserverClassForVersion()); }
public void upgradePayloadTable(String tableName) throws IOException { upgradeCoProcessor(tableUtil.createHTableId(NamespaceId.SYSTEM, tableName), tableUtil.getPayloadTableRegionObserverClassForVersion()); }
public CoprocessorManager(CConfiguration cConf, LocationFactory locationFactory, HBaseTableUtil tableUtil) { this.manageCoprocessors = cConf.getBoolean(Constants.HBase.MANAGE_COPROCESSORS); // this is really only useful in a development setting, so not putting the default in cdap-default.xml this.includeBuildInPath = cConf.getBoolean(INCLUDE_BUILD_IN_PATH, true); this.jarDir = locationFactory.create(cConf.get(Constants.CFG_HDFS_LIB_DIR)); //noinspection unchecked this.coprocessors = ImmutableSet.of( tableUtil.getTransactionDataJanitorClassForVersion(), tableUtil.getIncrementHandlerClassForVersion(), tableUtil.getMessageTableRegionObserverClassForVersion(), tableUtil.getPayloadTableRegionObserverClassForVersion()); }
public CoprocessorManager(CConfiguration cConf, LocationFactory locationFactory, HBaseTableUtil tableUtil) { this.manageCoprocessors = cConf.getBoolean(Constants.HBase.MANAGE_COPROCESSORS); // this is really only useful in a development setting, so not putting the default in cdap-default.xml this.includeBuildInPath = cConf.getBoolean(INCLUDE_BUILD_IN_PATH, true); this.jarDir = locationFactory.create(cConf.get(Constants.CFG_HDFS_LIB_DIR)); //noinspection unchecked this.coprocessors = ImmutableSet.of( tableUtil.getTransactionDataJanitorClassForVersion(), tableUtil.getIncrementHandlerClassForVersion(), tableUtil.getQueueRegionObserverClassForVersion(), tableUtil.getDequeueScanObserverClassForVersion(), tableUtil.getMessageTableRegionObserverClassForVersion(), tableUtil.getPayloadTableRegionObserverClassForVersion()); }
@Override public PayloadTable createPayloadTable(String tableName) throws IOException { TableId tableId = tableUtil.createHTableId(NamespaceId.SYSTEM, tableName); Class<? extends Coprocessor> tableCoprocessor = tableUtil.getPayloadTableRegionObserverClassForVersion(); HTableWithRowKeyDistributor tableWithRowKeyDistributor = createTable( tableId, cConf.getInt(Constants.MessagingSystem.PAYLOAD_TABLE_HBASE_SPLITS), tableCoprocessor ); return new HBasePayloadTable( tableUtil, tableWithRowKeyDistributor.getHTable(), COLUMN_FAMILY, tableWithRowKeyDistributor.getRowKeyDistributor(), scanExecutor, cConf.getInt(Constants.MessagingSystem.HBASE_SCAN_CACHE_ROWS), createExceptionHandler(tableId) ); }
@Override public PayloadTable createPayloadTable(TopicMetadata topicMetadata) throws IOException { TableId tableId = tableUtil.createHTableId(NamespaceId.SYSTEM, payloadTableName); Class<? extends Coprocessor> tableCoprocessor = tableUtil.getPayloadTableRegionObserverClassForVersion(); HTableWithRowKeyDistributor tableWithRowKeyDistributor = createTable( tableId, cConf.getInt(Constants.MessagingSystem.PAYLOAD_TABLE_HBASE_SPLITS), tableCoprocessor ); return new HBasePayloadTable( tableUtil, tableWithRowKeyDistributor.getHTable(), COLUMN_FAMILY, tableWithRowKeyDistributor.getRowKeyDistributor(), scanExecutor, cConf.getInt(Constants.MessagingSystem.HBASE_SCAN_CACHE_ROWS), createExceptionHandler(tableId) ); }