You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2022/03/30 11:08:51 UTC

[GitHub] [hadoop] iwasakims commented on pull request #4107: HDFS-16521. DFS API to retrieve slow datanodes

iwasakims commented on pull request #4107:
URL: https://github.com/apache/hadoop/pull/4107#issuecomment-1082994545


   I agree with @ayushtkn that modifying ClientProtocol is overkill for the use case. @virajjasani
   
   > While I agree that JMX metric for slownode is already available, not every downstreamer might have access to it directly, for instance in K8S managed clusters, unless port forward is enabled (not so common case in prod), HDFS downstreamer would not be able to access JMX metrics.
   
   Thanks to [JMXJsonServlet](https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java), we can get metrics in JSON format via HTTP/HTTPS port of NameNode without additional configuration. JSON on HTTP is usually easier to access from outside/downstream than Protobuf on RPC.
   
   ```
   $ curl namenode:9870/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus
   {
     "beans" : [ {
       "name" : "Hadoop:service=NameNode,name=NameNodeStatus",
       "modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode",
       "NNRole" : "NameNode",
       "HostAndPort" : "localhost:8020",
       "SecurityEnabled" : false,
       "LastHATransitionTime" : 0,
       "BytesWithFutureGenerationStamps" : 0,
       "SlowPeersReport" : "[]",
       "SlowDisksReport" : null,
       "State" : "active"
     } ]
   }
   ```
   
   How about enhancing metrics if the current information in the SlowPeersReport is insufficient?
   


-- 
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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org