HADOOP報錯,隨筆

來源:互聯網
上載者:User

標籤:hadoop   java_home   not be found   報錯   

1、新版本2.4.1中,profile/hadoop-env.sh中均己設定 JAVA_HOME,  java -version也正常。

啟動時報錯:

[[email protected] ~]# start-all.sh

Starting namenodes on []

localhost: Error: JAVA_HOME is not set and could not be found.

localhost: Error: JAVA_HOME is not set and could not be found.

...

starting yarn daemons
starting resourcemanager, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/yarn-admin-resourcemanager-localhost.out
localhost: Error: JAVA_HOME is not set and could not be found


直接命令列執行export JAVA_HOME=/PATH/TO/JDK也無法解決問題:


最終在   hadoop-2.4.1/etc/hadoop/libexec/hadoop-config.sh  這個設定檔中搜到報錯資訊“JAVA_HOME is not set and could not be found”

於是在這個設定檔中,  export JAVA_HOME=/PATH/JDK


問題得己解決、

本文出自 “Linux_螞蟻” 部落格,請務必保留此出處http://onlyoulinux.blog.51cto.com/7941460/1546526

HADOOP報錯,隨筆

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.