格式化namenode时:Error: JAVA_HOME is not set and could not be found.

1.格式化namenode

命令:hdfs namenode -format        

如果Error: JAVA_HOME is not set and could not be found.

                     修改hadoop-env.sh

                            export JAVA_HOME=/home/hyxy/soft/jdk

2.PS:两个防火墙记得关闭,否则Windows下访问不了192.168.134.128:50070

 

你可能感兴趣的:(hadoop,JAVA_HOME,格式化namenode,Error:,JAVA_HOME,is,not,set,an)