public class ClusterNodesResource
extends java.lang.Object
curl "http://localhost:51200/pxf/{version}/HadoopCluster/getNodesInfo"
/pxf/ is made part of the path when there is a webapp by that name in tcServer.| Constructor and Description |
|---|
ClusterNodesResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
read()
Function queries the Hadoop namenode with the getDataNodeStats API It
gets the host's IP and REST port of every HDFS data node in the cluster.
|
public javax.ws.rs.core.Response read()
throws java.lang.Exception
{"regions":[]}{"regions":[{"host":"1.2.3.1","port":50075},{"host":"1.2.3.2","port"
:50075}]}java.lang.Exception - if failed to retrieve info