In Hadoop, where can i change default url ports 50

2020-07-10 10:44发布


There must be a way to change the ports 50070 and 50030 so that the following urls display the clustr statuses on the ports i pick

NameNode - http://localhost:50070/
JobTracker - http://localhost:50030/


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:






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


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.


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