6

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/
user836087
  • 2,271
  • 8
  • 23
  • 33

4 Answers4

6

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>
Chris Gerken
  • 16,221
  • 6
  • 44
  • 59
  • But in the properties how do i mention interms of syntax? For example, the server IP and port: 10.12.65.160:7000 Do i put http before and how to make the entry? Please help, Im a noob in this – user836087 Nov 16 '12 at 20:55
  • also, I only have 2 ports available (:7000, :7199) due to our strict firewall team. How can i get access to view all the URLS? – user836087 Nov 16 '12 at 21:15
  • I updated the answer with the syntax to use. It's between you and your firewall team to come up with two ports that you can use. – Chris Gerken Nov 16 '12 at 22:12
  • The urls are not working. Do i need apache server or something? – user836087 Nov 19 '12 at 23:47
5

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.

paolov
  • 2,139
  • 1
  • 34
  • 43
1

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

Mahonri Moriancumer
  • 5,993
  • 2
  • 18
  • 28
user3652630
  • 21
  • 1
  • 3
0

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

netstat -plten | grep java

user3652630
  • 21
  • 1
  • 3