I successfully installed a 6-node Hadoop cluster (master, salve <1-5>)
- Formatted namenode -> done
- Starting and shutting down a cluster -> works fine
- Running "hadoop dfs -ls /" gives this error -> Error: INFO ipc.Client: trying to connect to the server again: localhost
I tried to browse services using:
sudo netstat -plten | grep java hduser@ubuntu :~$ sudo netstat -plten | grep java
tcp 0 0 0.0.0.0► 0070 0.0.0.0:* LISTEN 1000 93307 11384 / java
tcp 0 0 0.0.0.0-00-004440 0.0.0.0:* LISTEN 1000 92491 11571 / java
tcp 0 0 0.0.0.0:40633 0.0.0.0:* LISTEN 1000 92909 11758 / java
tcp 0 0 0.0.0.0► 0010 0.0.0.0:* LISTEN 1000 93449 11571 / java
tcp 0 0 0.0.0.0► 0075 0.0.0.0:* LISTEN 1000 93673 11571 / java
tcp 0 0 0.0.0.0► 0020 0.0.0.0:* LISTEN 1000 93692 11571 / java
tcp 0 0 127.0.0.1:40485 0.0.0.0:* LISTEN 1000 93666 12039 / java
tcp 0 0 0.0.0.0-00-004582 0.0.0.0:* LISTEN 1000 93 013 11852 / java
tcp 0 0 10.42.43.1/104310 0.0.0.0:* LISTEN 1000 92471 11384 / java
tcp 0 0 10.42.43.1/104311 0.0.0.0:* LISTEN 1000 93290 11852 / java
tcp 0 0 0.0.0.0► 0090 0.0.0.0:* LISTEN 1000 93460 11758 / java
tcp 0 0 0.0.0.0:34154 0.0.0.0:* LISTEN 1000 92179 11384 / java
tcp 0 0 0.0.0.0► 0060 0.0.0.0:* LISTEN 1000 94200 12039 / java
tcp 0 0 0.0.0.0► 0030 0.0.0.0:* LISTEN 1000 93550 11852 / java
Its main IP address is bound to ports 54310 and 54311, and not to localhost (loopback).
Conf-site.xml is configured correctly:
<configuration> <property> <name>hadoop.tmp.dir</name> <value>/home/hduser/hadoop/tmp</value> </property> <property> <name>fs.default.name</name> <value>hdfs://master:54310</value> </property> </configuration>
Why is it expected that localhost will be bound to 54310, and not to the host that I configured here. Help evaluate. How to solve this problem?
Greetings
stholy
source share