The DataStore class in the RESTful API provided by ApsaraDB for HBase Ganos (HBase Ganos) is used to record the values of the parameters that are used to connect to the backend storage. The parameters specify the catalog name mapped to your ApsaraDB for HBase instance and the ZooKeeper addresses used to connect to your ApsaraDB for HBase instance. DataStore objects are used as aliases of the configurations. The following table describes how to register a DataStore object in HBase Ganos.

Parameter Description
URL /ds/:alias
Method POST
URL parameters The alias parameter is an alphanumeric string that specifies the alias of the DataStore object. The alias is used as the unique identifier of the DataStore object.
Data parameters
  • hbase.catalog: specifies the catalog name of your ApsaraDB for HBase instance.You can customize the name.
  • hbase.zookeeper: specifies the ZooKeeper addresses of your ApsaraDB for HBase instance. The ZooKeeper addresses are used to connect to your ApsaraDB for HBase instance.
Success response Code: 200. Content: No content is returned.
Error response Code: 400. Content: No content is returned.
Example: Register a data source named my_ds in the catalog_name directory of your ApsaraDB for HBase client.
curl \
'localhost:8080/geoserver/geomesa/geojson/ds/my_ds' \
    -d hbase.catalog=catalog_name \
    -d hbase.zookeepers=localhost
You can run the following command to view the detailed information about all the registered DataStore objects:
curl 'localhost:8080/geoserver/geomesa/geojson/ds'