How to use the pygw.config.config.MODULE__hbase_config.HBaseOptions function in pygw

To help you get started, we’ve selected a few pygw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github locationtech / geowave / python / src / main / python / pygw / stores.py View on Github external
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)
github locationtech / geowave / python / src / main / python / pygw / stores.py View on Github external
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)