SuperMap iServer supports directly publishing HBase service as data service or map service, such as: REST Data Service, REST Map Service, WFS Service, WMS Service.
Publishing data stored in HBase as data service
You can quickly publish data stored in Elasticsearch as data service by the following steps:
- In service management Home, click Quickly publish services, choose HBase Service as data source, click Next.
- Input the service address (ZooKeeper address list), such as "192.168.112.251:2181", and database name (the file directory where the data is located), such as "test". Click Next.
- Select the service type to be published as data services, such as REST Data Service, click Next.
- Check whether to open the editable function for the data service being published. Default is uneditable.
- The service configuration information will be listed on the page, including data source, service type, click Finish to finish the publishing flow.
- After finishing the publishing flow, it will show the name and link of the current service, which can be accessed directly.
Publishing data stored in HBase as map service
You can quickly publish data stored in Elasticsearch as map service by the following steps:
- In service management Home, click Quickly publish services, choose HBase Service as data source, click Next.
- Input the service address (ZooKeeper address list), such as "192.168.112.251:2181", and database name (the file directory where the data is located), such as "test". Click Next.
- Select the service type to be published as map services, such as REST Map Service, click Next.
- Specify a JSON-formatted style file for maps, which must follow the Mapbox Style specification. Click Next.
- iServer provides a default mapbox style file. The [ iServer installation directory]/webapps/iserver/WEB-INF/config/mapboxstyles/defaultstyle.json file is the built-in style file.
- You can also specify a custom mapbox style file. The corresponding mapbox style file can be generated via iDesktop. The details are as follows: Open the workspace in iDesktop, click to open the map, right click on the map to generate vector tile style, select the storage path (this example chooses F:\data\2015su\), click OK to complete, then the style.json file will be generated in the storage path ../styles.

- The service configuration information will be listed on the page, including data source, service type, click Finish to finish the publishing flow.
- After finishing the publishing flow, it will show the name and link of the current service, which can be accessed directly.
Note: If the iServer service and the HBase cluster are not on the same machine, you need to add the ip+hostname of the machine where each node of the HBase cluster is located to the hosts file of the machine where the iServer service is located.