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 parameter | Description |
| URL | /ds/:alias |
| Method | POST |
| URL parameter | alias=[alphanumeric] specifies the alias of the DS. This alias uniquely identifies the DS object. |
| Data parameter |
|
| Successful response | Code: 200 |
| Failed response | Code: 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'
Is this page helpful?