What is the default Namenode port of HDFS. Is it 8020 or 9000 or 50070?

0 votes
I am following an article where it is mentioned that namenode runs on 50070 and I set up my hadoop single node cluster accordingly and it's running fine.

But while searching more on the internet, I have come across few websites mentioning name node address as :

hdfs://localhost:9000/
or

hdfs://localhost:8020
What exactly is the correct port number of namenode?
Mar 29, 2018 in Big Data Hadoop by Shubham
• 13,300 points
12,912 views

11 answers to this question.

0 votes

The default address of namenode web UI is http://localhost:50070/. You can open this address in your browser and check the namenode information.

The default address of namenode server is hdfs://localhost:8020/. You can connect to it to access HDFS by HDFS api.

For your reference please check the following links: link: https://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_reference/content/hdfs-ports.html

Hope this will clear your doubt.

answered Mar 29, 2018 by nitinrawat895
• 10,710 points
0 votes

These is the list of default ports:

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
answered Nov 27, 2018 by Komal
0 votes
8020 and 9000 are IPC ports for namenode. The default port for namenode UI is 50070.
answered Nov 27, 2018 by Tanveer
0 votes
9000 is the default service port and not for Web UI. For web UI you have to use 50070
answered Nov 27, 2018 by Sughandini
0 votes
Daemon
Namenode
Default Port
50070
Configuration Parameter
dfs.http.address
 

Source: ​

https://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/

answered Nov 27, 2018 by Kunal
0 votes
answered Nov 27, 2018 by Sanket
0 votes
Default non-web-UI port is 9000. Default web UI port 50070
answered Dec 7, 2018 by Rajan
0 votes
The default is 50070 but you can change it using the dfs.http.address property
answered Dec 7, 2018 by Jack
0 votes

You can change the default port from thr hdfs-default.xml file under dfs.http.address property

answered Dec 7, 2018 by Rohan
0 votes

To find out the configurations of namenode, you can run this command:

hdfs getconf -namenodes

By this you dont have to worry about what your port is. You can find out like this.

answered Dec 7, 2018 by Vanda
0 votes
8020/9000 hadoop namenode metadata port number. or you can call rpc/ipc port number. these ports used for internal communication
answered Dec 31, 2018 by SM
What do you mean by "internal communication"?

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer

What is the command to count number of lines in a file in hdfs?

hadoop fs -cat /example2/doc1 | wc -l READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 67,660 points
393 views
0 votes
1 answer

What is the Path of hdfs.site.xml?

Here's where you can find the file: /etc/hadoop/[service ...READ MORE

answered Jan 4 in Big Data Hadoop by Omkar
• 67,660 points
57 views
0 votes
1 answer

What is the main purpose of HDFS fsck command?

HDFS fsck is used to check the ...READ MORE

answered Apr 9 in Big Data Hadoop by Gitika
• 25,340 points

edited Apr 11 by Gitika 562 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,185 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,710 points
3,299 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,235 views
0 votes
1 answer
0 votes
12 answers

What is Zookeeper? What is the purpose of Zookeeper in Hadoop Ecosystem?

Hey, Apache Zookeeper says that it is a ...READ MORE

answered Apr 29 in Big Data Hadoop by Gitika
• 25,340 points
5,529 views
0 votes
1 answer