In Hadoop, where can i change default url ports 50070 and 50030 for namenode and jobtracker webpages

六月ゝ 毕业季﹏ 提交于 2019-12-04 07:30:52

Define your choice of ports by setting properties dfs.http.address for Namenode and mapred.job.tracker.http.address for Jobtracker in conf/core-site.xml:

<configuration>

    <property>
        <name>dfs.http.address</name>
        <value>50070</value>
    </property>

    <property>
        <name>mapred.job.tracker.http.address</name>
        <value>50030</value>
    </property>

</configuration>

This question is old but probably worth pointing out the namenode port is set via dfs.namenode.http-address in conf/hdfs-site.xml.

<property>
         <name>dfs.namenode.http-address</name>
                          <value>0.0.0.0:50020</value>
</property>

I was misled by the other answers for this question so hopefully this helps someone else. At least this is how it is for hadoop 2.6.0.

user3652630

The default Hadoop ports are as follows:

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

If we wish to change any port then add corresponding in conf/core-site.xml

To look at the ports what all are running we can get it through

netstat -plten | grep java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!