HDFS 的默认 Namenode 端口是 50070.但我在某些地方遇到过 8020 或 9000 [英] Default Namenode port of HDFS is 50070.But I have come across at some places 8020 or 9000
问题描述
当我设置 hadoop 集群时,我读到 namenode 在 50070 上运行,我进行了相应的设置,它运行良好.
When I setup the hadoop cluster, I read the namenode runs on 50070 and I set up accordingly and it's running fine.
但在一些书中我遇到过名称节点地址:
But in some books I have come across name node address :
hdfs://localhost:9000/
或
hdfs://localhost:8020
设置namenode端口的正确数字是多少?
What exactly is the proper number to set the port of namenode?
推荐答案
默认的Hadoop端口如下:(HTTP端口,有WEB UI):
The default Hadoop ports are as follows: (HTTP ports, they have WEB UI):
Daemon Default Port Configuration Parameter
----------------------- ------------ ----------------------------------
Namenode 50070 dfs.http.address
Datanodes 50075 dfs.datanode.http.address
Secondarynamenode 50090 dfs.secondary.http.address
Backup/Checkpoint node? 50105 dfs.backup.http.address
Jobracker 50030 mapred.job.tracker.http.address
Tasktrackers 50060 mapred.task.tracker.http.address
在内部,Hadoop 主要使用 Hadoop IPC(代表进程间通信器)在服务器之间进行通信.下表显示了 Hadoop 使用的端口和协议.此表不包括上述 HTTP 端口.
Internally, Hadoop mostly uses Hadoop IPC, which stands for Inter Process Communicator, to communicate amongst servers. The following table presents the ports and protocols that Hadoop uses. This table does not include the HTTP ports mentioned above.
Daemon Default Port Configuration Parameter
------------------------------------------------------------
Namenode 8020 fs.default.name
Datanode 50010 dfs.datanode.address
Datanode 50020 dfs.datanode.ipc.address
Backupnode 50100 dfs.backup.address
查看此链接了解更多信息:http://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/
check out this link For more info: http://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/
这篇关于HDFS 的默认 Namenode 端口是 50070.但我在某些地方遇到过 8020 或 9000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!