Hean-Chhinling commented on code in PR #7726:
URL: https://github.com/apache/hadoop/pull/7726#discussion_r2143531862
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java:
##########
@@ -271,6 +273,35 @@ public ContainerInfo
getNodeContainer(@javax.ws.rs.core.Context
}
+ @GET
+ @Path("/jstack")
+ @Produces({MediaType.TEXT_PLAIN})
+ public Response getNodeJStack() {
+ try {
+ return Response.status(Status.OK)
+ .entity(DiagnosticJStackService.collectNodeJStack()) // Make
sure the NodeManager have python3 install
Review Comment:
It is quite ambiguous when the python3 is not installed. The exception will
only be shown when I execute the script manually. If I try to access the
endpoint at RM without the `python3` installed in NM, It will just say
'Internal Server error 500' and user have to check the corresponding NM to see
the error. I will work on this to make the error less ambiguous.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]