while (iterator.hasNext()) { final Entry<Object, Object> property = iterator.next(); config.overrideConfig((String)property.getKey(), (String)property.getValue());
= context.getSubProperties(HBaseSinkConfigurationConstants.ASYNC_PREFIX); asyncClientConfig = new Config(); asyncClientConfig.overrideConfig( HBaseSinkConfigurationConstants.ASYNC_ZK_QUORUM_KEY, zkQuorum ); asyncClientConfig.overrideConfig( HBaseSinkConfigurationConstants.ASYNC_ZK_BASEPATH_KEY, zkBaseDir ); for (String property: asyncProperties.keySet()) { asyncClientConfig.overrideConfig(property, asyncProperties.get(property));
config.overrideConfig("hbase.rpcs.buffered_flush_interval", Short.toString(flush_interval)); this.flush_interval = flush_interval;
return current; config.overrideConfig("hbase.increments.buffer_size", Integer.toString(increment_buffer_size)); this.increment_buffer_size = increment_buffer_size;
Config config = new Config(); config.overrideConfig("hbase.zookeeper.quorum", systemConfig.getValue(Property.HBASE_ZOOKEEPER_CONNECT.getName(), Property.HBASE_ZOOKEEPER_CONNECT.getDefaultValue())); config.overrideConfig("hbase.zookeeper.session.timeout", systemConfig.getValue(Property.HBASE_ZOOKEEPER_SESSION_TIMEOUT.getName(), Property.HBASE_ZOOKEEPER_SESSION_TIMEOUT.getDefaultValue())); config.overrideConfig("hbase.rpcs.batch.size", systemConfig.getValue(Property.HBASE_RPCS_BATCH_SIZE.getName(), Property.HBASE_RPCS_BATCH_SIZE.getDefaultValue())); config.overrideConfig("hbase.rpcs.buffered_flush_interval", systemConfig.getValue(Property.HBASE_RPCS_BUFFERED_FLUSH_INTERVAL.getName(), Property.HBASE_RPCS_BUFFERED_FLUSH_INTERVAL.getDefaultValue())); config.overrideConfig("hbase.rpc.timeout", systemConfig.getValue(Property.HBASE_RPC_TIMEOUT.getName(), Property.HBASE_RPC_TIMEOUT.getDefaultValue())); config.overrideConfig("hbase.security.auth.enable", systemConfig.getValue(Property.HBASE_SECURITY_AUTH_ENABLE.getName(), Property.HBASE_SECURITY_AUTH_ENABLE.getDefaultValue())); config.overrideConfig("hbase.rpc.protection", systemConfig.getValue(Property.HBASE_RPC_PROTECTION.getName(), Property.HBASE_RPC_PROTECTION.getDefaultValue())); config.overrideConfig("hbase.sasl.clientconfig", systemConfig.getValue(Property.HBASE_SASL_CLIENTCONFIG.getName(), Property.HBASE_SASL_CLIENTCONFIG.getDefaultValue())); config.overrideConfig("hbase.kerberos.regionserver.principal", systemConfig.getValue(Property.HBASE_KERBEROS_REGIONSERVER_PRINCIPAL.getName(), Property.HBASE_KERBEROS_REGIONSERVER_PRINCIPAL.getDefaultValue())); config.overrideConfig("hbase.security.authentication", systemConfig.getValue(Property.HBASE_SECURITY_AUTHENTICATION.getName(), Property.HBASE_SECURITY_AUTHENTICATION.getDefaultValue()));
Config config = new Config(); config.overrideConfig("hbase.zookeeper.quorum", systemConfig.getValue(Property.HBASE_ZOOKEEPER_CONNECT.getName(), Property.HBASE_ZOOKEEPER_CONNECT.getDefaultValue())); config.overrideConfig("hbase.zookeeper.session.timeout", systemConfig.getValue(Property.HBASE_ZOOKEEPER_SESSION_TIMEOUT.getName(), Property.HBASE_ZOOKEEPER_SESSION_TIMEOUT.getDefaultValue())); config.overrideConfig("hbase.rpcs.batch.size", systemConfig.getValue(Property.HBASE_RPCS_BATCH_SIZE.getName(), Property.HBASE_RPCS_BATCH_SIZE.getDefaultValue())); config.overrideConfig("hbase.rpcs.buffered_flush_interval", systemConfig.getValue(Property.HBASE_RPCS_BUFFERED_FLUSH_INTERVAL.getName(), Property.HBASE_RPCS_BUFFERED_FLUSH_INTERVAL.getDefaultValue())); config.overrideConfig("hbase.rpc.timeout", systemConfig.getValue(Property.HBASE_RPC_TIMEOUT.getName(), Property.HBASE_RPC_TIMEOUT.getDefaultValue())); config.overrideConfig("hbase.security.auth.enable", systemConfig.getValue(Property.HBASE_SECURITY_AUTH_ENABLE.getName(), Property.HBASE_SECURITY_AUTH_ENABLE.getDefaultValue())); config.overrideConfig("hbase.rpc.protection", systemConfig.getValue(Property.HBASE_RPC_PROTECTION.getName(), Property.HBASE_RPC_PROTECTION.getDefaultValue())); config.overrideConfig("hbase.sasl.clientconfig", systemConfig.getValue(Property.HBASE_SASL_CLIENTCONFIG.getName(), Property.HBASE_SASL_CLIENTCONFIG.getDefaultValue())); config.overrideConfig("hbase.kerberos.regionserver.principal", systemConfig.getValue(Property.HBASE_KERBEROS_REGIONSERVER_PRINCIPAL.getName(), Property.HBASE_KERBEROS_REGIONSERVER_PRINCIPAL.getDefaultValue())); config.overrideConfig("hbase.security.authentication", systemConfig.getValue(Property.HBASE_SECURITY_AUTHENTICATION.getName(), Property.HBASE_SECURITY_AUTHENTICATION.getDefaultValue()));
= context.getSubProperties(HBaseSinkConfigurationConstants.ASYNC_PREFIX); asyncClientConfig = new Config(); asyncClientConfig.overrideConfig( HBaseSinkConfigurationConstants.ASYNC_ZK_QUORUM_KEY, zkQuorum ); asyncClientConfig.overrideConfig( HBaseSinkConfigurationConstants.ASYNC_ZK_BASEPATH_KEY, zkBaseDir ); for (String property: asyncProperties.keySet()) { asyncClientConfig.overrideConfig(property, asyncProperties.get(property));