Kevin Su
Kevin Su

Reputation: 602

http://localhost:9870 does not work HADOOP

I am beginner to learn hadoop,i use latest version ubuntu,I have an error when browsing localhost:9870 the browser says that the page does not exist

Upvotes: 6

Views: 19544

Answers (3)

clumsygoose
clumsygoose

Reputation: 1

Check port 9000, maybe it is occupied by other programs, you can use sudo lsof -i :9000 to see the process occupying port 9000, as shown below, my port 9000 is occupied by clickhouse port 9000 Then modify the port in the core-site .xml, I modify it to 9001 here, restart, check the 9001 port, try to http://localhost:9870 again, and it succeeds. port 9001 port 9870

Upvotes: 0

Chu van tinh
Chu van tinh

Reputation: 87

$ bin/hdfs namenode -format

then -format I can restart hdfs

I don't know why it must be

Upvotes: 4

nghiep truong
nghiep truong

Reputation: 310

First, you need to check you Hadoop daemons are running by entering the command: jps. Here my namenode is also configured as datanode.

enter image description here

Second, check Namenode Java Process is running with 9870 port or not by entering the command.

netstat -an | grep 9870

Third, check dfs.namenode.http-address property in hdfs-site.xml

Finally, make sure you have disabled firewall

Upvotes: 10

Related Questions