Validate Service Connectivity
Use the commands in this section to test connectivity between the gateway host and the service, and then test connectivity between an external client to the service through the gateway.
![]() | Tip |
|---|---|
If the communication between the gateway host and an internal service fails, telnet to the service port to verify that the gateway is able to access the cluster node. Use the hostname and ports you specified in the service definition. |
-
At the gateway host, enter:
Service Enter WebHDFS curl http://$webhdfs-host:50070/webhdfs/v1?op=GETHOMEDIRECTORYWebHCat/Templeton curl http://$webhdfs-host:50111/templeton/v1/versionOozie curl http://$oozie-host:11000/oozie/v1/admin/build-versionHBase/Stargate curl http://$hbase-host:17000/versionHiveServer2 curl http://$hive-host:10001/cliserviceService Displays WebHDFS {"Path":"/user/gopher"}WebHCat/Templeton {"supportedVersions":["v1"],"version":"v1"}Oozie {"buildVersion":"4.0.0.2.1.1.0-302"}HBase/Stargate rest 0.0.2 JVM: Oracle Corporation 1.7.0_51-24.45-b08 OS: Linux 3.8.0-29-generic amd64 Server:jetty/6.1.26 Jersey:1.8:HiveServer2 -
At the external client, enter:
Service Enter WebHDFS curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$webhdfs_service_name/v1?op=GETHOMEDIRECTORYWebHCat/Templeton curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$webhcat_service_name/v1/versionOozie curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$oozie_service_name/v1/admin/build-versionHBase/Stargate curl http://$hbase-host:17000/versionHiveServer2 curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$hive_service_name/cliserviceService Displays WebHDFS {"Path":"/user/gopher"}WebHCat/Templeton {"supportedVersions":["v1"],"version":"v1"}Oozie {"buildVersion":"4.0.0.2.1.1.0-302"}HBase/Stargate rest 0.0.2 JVM: Oracle Corporation 1.7.0_51-24.45-b08 OS: Linux 3.8.0-29-generic amd64 Server:jetty/6.1.26 Jersey:1.8HiveServer2


