Hadoop启动报Error: JAVA_HOME is not set and could not be found 1.首先shell输入$JAVA_HOME如果没有安装,需要先用export配置Java环境变量 修改etc/hadoop/hadoop-env.sh中设JAVA_HOME