-
“Config” tab of target Hippo service from Manager
-
Backend: /etc/hippo/conf/shiva-restful.sh
Default Port Information
The default port information for Hippo is listed below:
Configuration Items | Description | Configuration Addresses | Port Number |
---|---|---|---|
http.port |
Webserver port |
|
4567 |
httpserver.port |
Restful API port |
|
8902 |
master.rpc_service.master_service_port |
Shiva Master port |
|
8630 - 8633 |
tabletserver.rpc_service.manage_service_port |
Tablet Server port |
|
8702- 8705 |
How to Connect
Users can connect to Hippo via Restful API, Python and Java now. Please refer to the samples shown below.
Restful API
curl -u shiva:shiva -XPUT 'ip:port/hippo/v1/{command}?pretty' -H 'Content-Type: application/json' -d'{}'
复制
Parameter description:
Parameters | Description | Comments |
---|---|---|
-u |
Specifies the username and password |
Defaults to shiva:shiva |
-XPUT |
Request type |
|
ip |
IP of the node where Hippo HTTP Server is located |
|
port |
Port of Hippo HTTP Server |
Defaults to 8902 |
Python API
The “hc” created by below commands is a management tool which can be used for tracking and managing connectivity status. If one connection drops, “hc” can automatically choose another available connection from the rest. |
hc = HippoClient(["ip:port"], username = "", pwd = "") ## Users can add more “ip:port” as shown below, however username and password should stay the same hc = HippoClient(["ip1:port","ip2:port"], username = "", pwd = "")
复制
Parameter description:
Parameters | Description | Comments |
---|---|---|
ip |
IP of the node where Hippo HTTP Server is located |
|
port |
Port of Hippo HTTP Server |
Defaults to 8902 |
username |
Username |
Defaults to shiva |
pwd |
Password |
Defaults to shiva |