Register a DataStore

Updated at:

This topic describes how to register a DataStore in the HBase Ganos spatiotemporal engine.

In the HBase Ganos REST API, a DataStore (DS) stores the configuration parameters required to connect to backend storage. These parameters include the Catalog Name mapped in HBase and the ZooKeeper address for connecting to the HBase instance. A DS serves as an alias for this configuration information. The following table shows how to register a DS in HBase Ganos.

Configuration parameterDescription
URL/ds/:alias
MethodPOST
URL parameteralias=[alphanumeric] specifies the alias of the DS. This alias uniquely identifies the DS object.
Data parameter
  • hbase.catalog: The HBase Catalog Name. This name can be customized.
  • hbase.zookeepers: The ZooKeeper address used to connect to the HBase instance.
Successful responseCode: 200
Failed responseCode: 400

Examples

  • Register a data source named my_ds in the catalog_name directory in HBase.
    curl \
    'localhost:8080/geoserver/geomesa/geojson/ds/my_ds' \
        -d hbase.catalog=catalog_name \
        -d hbase.zookeepers=localhost
  • After the DS is created, run the following command to view the details of all registered DSs.
    curl 'localhost:8080/geoserver/geomesa/geojson/ds'