Configuring Proxy with Apache Knox
Also available as:
PDF
loading table of contents...

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
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.

  1. At the gateway host, enter:
    ServiceEnter
    WebHDFS
    curl http://$webhdfs-host:50070/webhdfs/v1?op=GETHOMEDIRECTORY
    WebHCat/Templeton
    curl http://$webhdfs-host:50111/templeton/v1/version
    Oozie
    curl http://$oozie-host:11000/oozie/v1/admin/build-version
    HBase/Stargate
    curl http://$hbase-host:17000/version
    HiveServer2
    curl http://$hive-host:10001/cliservice
    Service 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
  2. At the external client, enter:
    ServiceEnter
    WebHDFS
    curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$webhdfs_service_name/v1?op=GETHOMEDIRECTORY
    WebHCat/Templeton
    curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$webhcat_service_name/v1/version
    Oozie
    curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$oozie_service_name/v1/admin/build-version
    HBase/Stargate
    curl http://$hbase-host:17000/version
    HiveServer2
    curl https://$gateway-host:$gateway_port/$gateway/$cluster_name/$hive_service_name/cliservice
    Service 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