Class YarnWebServiceUtils
java.lang.Object
org.apache.hadoop.yarn.webapp.util.YarnWebServiceUtils
This class contains several utility function which could be used to generate
Restful calls to RM/NM/AHS.
-
Method Summary
-
Method Details
-
getNodeInfoFromRMWebService
public static org.codehaus.jettison.json.JSONObject getNodeInfoFromRMWebService(org.apache.hadoop.conf.Configuration conf, String nodeId) throws javax.ws.rs.ProcessingException, IllegalStateException Utility function to get NodeInfo by calling RM WebService.- Parameters:
conf- the configurationnodeId- the node- Returns:
- a JSONObject which contains the NodeInfo
- Throws:
javax.ws.rs.ProcessingExceptionIllegalStateException
-
toJson
- Throws:
Exception
-