Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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/
like image 894
user836087 Avatar asked Nov 16 '12 19:11

user836087


2 Answers

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>
like image 67
Chris Gerken Avatar answered Sep 28 '22 05:09

Chris Gerken


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.

like image 34
paolov Avatar answered Sep 28 '22 07:09

paolov