to see oriartical with pictures
- format namenode fail
check:
1)if /etc/hostname is localhost
2)if $HADOOP_HOME/etc/hadoop/coresite.xml host=localhost
2)if /etc/hosts hava 127.0.0.1 localhost
delete:- /tmp/hadoop-*
- $HADOOP_HOME/tmp/*
- $HADOOP_HOME/log/*
reformat namenode
2.jps shows nothing
chmod -R 755 /tmp/hsperfdata_*
chmod -R 755 $HADOOP_HOME/tmp
3.browse localhost:50070 error
stop your firewall how to do
jps check if it has six result:Jps,NameNode.DataNode.SecondaryNameNode,nodemanager ,ResourceManager
look I have four only.This is why I failed.
[root@localhost hadoop-3.1.1]# jps
13472 SecondaryNameNode
13065 NameNode
14238 Jps
13231 DataNode
[root@localhost hadoop-3.1.1]#
4.how to do if you fail to start NodeManager?
1)someone tells memory is too small
https://blog.csdn.net/ling811/article/details/51887569
https://blog.csdn.net/u013641234/article/details/51123648
how to adjust xms
2)someone says port is occupyed
[root@localhost logs]# netstat -anp|grep 8040
[root@localhost logs]# netstat -anp|grep 8041
[root@localhost logs]# netstat -anp|grep 8042
[root@localhost logs]#
3)someone say it is because of jdk
[root@localhost logs]# java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
[root@localhost logs]#
4)someone say the port is error
I succeed with this blog 's dissguss
but there is still no nodemanager