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
命令:hdfs namenode -format
如果Error: JAVA_HOME is not set and could not be found.
修改hadoop-env.sh
export JAVA_HOME=/home/hyxy/soft/jdk