安装Hadoop报错找不到jdk


0.0.0.0: Error: JAVA_HOME is not set and could not be found.
starting yarn daemons
starting resourcemanager, logging to /opt/apps/hadoop-2.8.1/logs/yarn-root-resourcemanager-hadoop.out
hadoop: Error: JAVA_HOME is not set and could not be found.

启动hdfs却报错找不到jdk

其实原因是没有配置好hadoop-env.sh中的JAVA_HOME

vi /opt/apps/hadoop-2.8.1/etc/hadoop/hadoop-env.sh

找到JAVA_HOME,把路径改成jdk的实际路径

安装Hadoop报错找不到jdk_第1张图片

 安装Hadoop报错找不到jdk_第2张图片

 

你可能感兴趣的:(大数据那些事,日常踩坑记,hadoop)