Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, zookeeper="example", hbase_namespace=None):
"""
Create an HBase data store
zookeeperh (string): zoopkeeper for hbase
hbase_namespace (str): namespace of hbase
"""
if hbase_namespace:
j_hbase_opts = config.MODULE__hbase_config.HBaseOptions(hbase_namespace)
else:
j_hbase_opts = config.MODULE__hbase_config.HBaseOptions()
j_hbase_opts.setZookeeper(zookeeper)
j_ds = config.MODULE__core_store.DataStoreFactory.createDataStore(j_hbase_opts)
super().__init__(config.GATEWAY, j_ds)
def __init__(self, zookeeper="example", hbase_namespace=None):
"""
Create an HBase data store
zookeeperh (string): zoopkeeper for hbase
hbase_namespace (str): namespace of hbase
"""
if hbase_namespace:
j_hbase_opts = config.MODULE__hbase_config.HBaseOptions(hbase_namespace)
else:
j_hbase_opts = config.MODULE__hbase_config.HBaseOptions()
j_hbase_opts.setZookeeper(zookeeper)
j_ds = config.MODULE__core_store.DataStoreFactory.createDataStore(j_hbase_opts)
super().__init__(config.GATEWAY, j_ds)