2 # Query the Hbase service for the cluster status.
 
   3 GET_CLUSTER_STATUS_RESPONSE=$(curl -si -X GET -H "Accept: text/xml" http://aai-hbase.namespace-placeholder:8080/status/cluster)
 
   5 if [ -z "$GET_CLUSTER_STATUS_RESPONSE" ]; then
 
   6   echo "Tabular store is unreachable."
 
  10 # Check the resulting status JSON to see if there is a 'DeadNodes' stanza with 
 
  12 DEAD_NODES=$(echo $GET_CLUSTER_STATUS_RESPONSE | grep "<DeadNodes/>")
 
  14 if [ -n "$DEAD_NODES" ]; then
 
  15   echo "Tabular store is up and accessible."
 
  18   echo "Tabular store is up but is reporting dead nodes - cluster may be in degraded state."