get_hadoop_cluster_status

This API returns the status of a Hadoop cluster on a specified host. This command only checks to see that the S-TAP® has been set up as a remote logger for Ranger.

This command does not validate that auditing is turned on at Ranger or that traffic is actually flowing. You need to run reports or look in the investigation dashboard on the appliance to see if traffic is flowing to the appliance.

This API is available in Guardium V10.1.4 and later.

The REST API is available in Guardium V11.0 and later.

REST API syntax

This API is available as a REST service with the GET method. Call this API as follows:
GET https://[Guardium hostname or IP address]:8443/restAPI/get_hadoop_cluster_status

GuardAPI syntax

get_hadoop_cluster_status parameter=value

Parameters

Parameter Value type Description
clusterName String Required. The name of the cluster.
password String Required. Password for the cluster.
serverHostName String Required. Ambari host name.
serverPort Integer Ambari port.
sslEnabled Boolean Valid values:
  • 0: false
  • 1: true

Default = 0

userName String Required. Admin ID for Ambari.

API example

grdapi get_hadoop_cluster_status serverHostName=<server name> serverPort=8080 userName=admin password=admin clusterName=c5HDFS
Monitoring EnabledHBASE
Monitoring EnabledHIVE
Monitoring EnabledKAFKA          
Monitoring Enabled