如何查看自己的hadoop端口
要查看Hadoop的端口,您可以依照以下步骤进行操作:
hdfs getconf -confKey dfs.namenode.http-address
这将返回NameNode的HTTP端口。
hdfs getconf -confKey dfs.namenode.https-address
这将返回NameNode的HTTPS端口。
hdfs getconf -confKey dfs.datanode.http.address
这将返回DataNode的HTTP端口。
hdfs getconf -confKey dfs.datanode.https.address
这将返回DataNode的HTTPS端口。
yarn getconf -confKey yarn.resourcemanager.webapp.address
这将返回ResourceManager的Web UI端口。
yarn getconf -confKey yarn.nodemanager.webapp.address
这将返回NodeManager的Web UI端口。
mapred getconf -confKey mapreduce.jobhistory.webapp.address
这将返回JobHistoryServer的Web UI端口。
请注意,这些命令的输出将显示Hadoop集群中每一个组件的端口号。
TOP