为什么hadoop在其他端口上运行?

时间:2017-10-08 12:58:08

标签: hadoop2

我正在学习hadoop,只是你自己安装了hadoop

所以我在配置时在core-site.xml文件中设置了127.0.0.1:54310/。

但是当我打开这个打开127.0.0.1:54310/时。它显示了这个引用

"It looks like you are making an HTTP request to a Hadoop IPC port. This is not the correct port for the web interface on this daemon."

此处端口正在运行

tcp        0      0 0.0.0.0:50070           0.0.0.0:*               LISTEN      1001       120452      22666/java      
tcp        0      0 0.0.0.0:50010           0.0.0.0:*               LISTEN      1001       119197      22787/java      
tcp        0      0 0.0.0.0:50075           0.0.0.0:*               LISTEN      1001       119235      22787/java      
tcp        0      0 0.0.0.0:50020           0.0.0.0:*               LISTEN      1001       120744      22787/java      
tcp        0      0 127.0.0.1:54310         0.0.0.0:*               LISTEN      1001       117942      22666/java      
tcp        0      0 0.0.0.0:50090           0.0.0.0:*               LISTEN      1001       125548      22953/java      
tcp6       0      0 :::54935                :::*                    LISTEN      1001       122123      23275/java      
tcp6       0      0 :::8088                 :::*                    LISTEN      1001       118396      23130/java      
tcp6       0      0 :::8030                 :::*                    LISTEN      1001       126362      23130/java      
tcp6       0      0 :::8031                 :::*                    LISTEN      1001       126344      23130/java      
tcp6       0      0 :::8032                 :::*                    LISTEN      1001       118392      23130/java      
tcp6       0      0 :::8033                 :::*                    LISTEN      1001       125653      23130/java      
tcp6       0      0 :::8040                 :::*                    LISTEN      1001       126351      23275/java      
tcp6       0      0 :::8042                 :::*                    LISTEN      1001       122149      23275/java  

但是当我打开127.0.0.1:50070时,它会显示我的hadoop页面,其中包含Overview,Datanode等标签。

任何人都可以解释这些端口是什么差异端口,如何在50070端口上运行hadoop,就像我在54310上设置的那样,为什么会这样?

1 个答案:

答案 0 :(得分:0)

嗯,默认dfs.namenode.http-address是50070.这是在 hdfs-site.xml

https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml

显然你没有设置该属性并设置其他内容。听起来像是设置了datanode IPC地址,即50020。

除非您知道端口上存在冲突,否则无需更改任何内容