桌面版 hadoop 啟動權限 錯誤 [論壇 - 伺服器架設]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊



桌面版 hadoop 啟動權限 錯誤
會員一級
註冊日期:
2013/7/18 14:30
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 2
MP : 1 / 56
EXP: 10
離線
如下


michael@michael-Aspire-V3-571G:~$ su - hadoop
密碼:
hadoop@michael-Aspire-V3-571G:~$ cd /home/hadoop/hadoop-1.1.2
hadoop@michael-Aspire-V3-571G:~/hadoop-1.1.2$ bin/start-all.sh
Warning: $HADOOP_HOME is deprecated.

chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許
namenode running as process 7815. Stop it first.
localhost: Could not create directory '/home/hadoop/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is ba:15:8b:47:bf:86:ea:9c:5e:e3:a7:fa:a0:84:24:83.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Failed to add the host to the list of known hosts (/home/hadoop/.ssh/known_hosts).
hadoop@localhost's password:
localhost: Warning: $HADOOP_HOME is deprecated.
localhost:
localhost: chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許
localhost: starting datanode, logging to /home/hadoop/hadoop-1.1.2/logs/hadoop-hadoop-datanode-michael-Aspire-V3-571G.out
localhost: /home/hadoop/hadoop-1.1.2/bin/hadoop-daemon.sh: line 136: /home/hadoop/hadoop-1.1.2/logs/hadoop-hadoop-datanode-michael-Aspire-V3-571G.out: 拒絕不符權限的操作
localhost: head: 無法開啟 ‘/home/hadoop/hadoop-1.1.2/logs/hadoop-hadoop-datanode-michael-Aspire-V3-571G.out’ 來讀取資料: 沒有此一檔案或目錄
localhost: Could not create directory '/home/hadoop/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is ba:15:8b:47:bf:86:ea:9c:5e:e3:a7:fa:a0:84:24:83.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Failed to add the host to the list of known hosts (/home/hadoop/.ssh/known_hosts).
hadoop@localhost's password:
localhost: Warning: $HADOOP_HOME is deprecated.
localhost:
localhost: chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許
localhost: secondarynamenode running as process 8371. Stop it first.
chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許
jobtracker running as process 8467. Stop it first.
localhost: Could not create directory '/home/hadoop/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is ba:15:8b:47:bf:86:ea:9c:5e:e3:a7:fa:a0:84:24:83.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Failed to add the host to the list of known hosts (/home/hadoop/.ssh/known_hosts).
hadoop@localhost's password:
localhost: Warning: $HADOOP_HOME is deprecated.
localhost:
localhost: chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許
localhost: tasktracker running as process 8725. Stop it first.
hadoop@michael-Aspire-V3-571G:~/hadoop-1.1.2$



不知道怎麼解決

2013/7/31 16:41
應用擴展 工具箱
回覆: 桌面版 hadoop 啟動權限 錯誤

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 54849
EXP: 24
離線
hadoop@michael-Aspire-V3-571G:~/hadoop-1.1.2$ bin/start-all.sh

試試

1. 先 cd bin

start-all.sh

2. 如果不行
cd ~/
~/hadoop-1.1.2/bin/start-all.sh

2013/7/31 20:52
應用擴展 工具箱
回覆: 桌面版 hadoop 啟動權限 錯誤
管理員
註冊日期:
2011/3/11 6:32
所屬群組:
討論區管理群
等級: 44
HP : 216 / 1084
MP : 1088 / 29885
EXP: 38
離線
a79380413 寫到:
michael@michael-Aspire-V3-571G:~$ su - hadoop

Hadoop 不一定需要在另一個使用者下運作

a79380413 寫到:
hadoop@michael-Aspire-V3-571G:~/hadoop-1.1.2$ bin/start-all.sh
Warning: $HADOOP_HOME is deprecated.

localhost: Warning: $HADOOP_HOME is deprecated.

localhost: Warning: $HADOOP_HOME is deprecated.

localhost: Warning: $HADOOP_HOME is deprecated.

HADOOP_HOME 環境變數的功能已被 HADOOP_PREFIX 取代,且已不建議使用

a79380413 寫到:
chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許
localhost:
localhost: chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許

localhost: /home/hadoop/hadoop-1.1.2/bin/hadoop-daemon.sh: line 136: /home/hadoop/hadoop-1.1.2/logs/hadoop-hadoop-datanode-michael-Aspire-V3-571G.out: 拒絕不符權限的操作

localhost: head: 無法開啟 ‘/home/hadoop/hadoop-1.1.2/logs/hadoop-hadoop-datanode-michael-Aspire-V3-571G.out’ 來讀取資料: 沒有此一檔案或目錄


localhost:
localhost: chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許

chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許

localhost:
localhost: chown: 正在更改 ‘/home/hadoop/hadoop-1.1.2/logs’ 的擁有者: 此項操作並不被允許

logs 目錄無法變更擁有者且無法正常存取,請以 root 身份將 hadoop-1.1.2 目錄與其子目錄之項目的擁有者、擁有群組改為 hadoop

a79380413 寫到:
namenode running as process 7815. Stop it first.
jobtracker running as process 8467. Stop it first.
localhost: secondarynamenode running as process 8371. Stop it first.

您已在運行 Hadoop Namenode daemon,請先執行 $HADOOP_PREFIX/bin/stop-all.sh 將所有 Hadoop daemon 中止再執行 bin/start-all.sh

a79380413 寫到:
localhost: Could not create directory '/home/hadoop/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is ba:15:8b:47:bf:86:ea:9c:5e:e3:a7:fa:a0:84:24:83.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Failed to add the host to the list of known hosts (/home/hadoop/.ssh/known_hosts).

localhost: Could not create directory '/home/hadoop/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is ba:15:8b:47:bf:86:ea:9c:5e:e3:a7:fa:a0:84:24:83.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Failed to add the host to the list of known hosts (/home/hadoop/.ssh/known_hosts).

localhost: Could not create directory '/home/hadoop/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is ba:15:8b:47:bf:86:ea:9c:5e:e3:a7:fa:a0:84:24:83.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Failed to add the host to the list of known hosts (/home/hadoop/.ssh/known_hosts).

hadoop 使用者的家目錄下的 .ssh 目錄與其下檔案無法正常存取,請確定其為 hadoop 使用者所擁有

a79380413 寫到:
hadoop@localhost's password:
hadoop@localhost's password:

您需要設定 SSH 無密碼登入

2013/8/2 15:18
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
 Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW
 http://creativecommons.org/licenses/by/3.0/tw/

「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」
 by Allen Own
 出處 http://www.plurk.com/p/i4uogm

自由知識創作平台介紹
 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE
如何建立新的自由知識創作平台文件
 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA
應用擴展 工具箱
回覆: 桌面版 hadoop 啟動權限 錯誤
管理員
註冊日期:
2011/3/11 6:32
所屬群組:
討論區管理群
等級: 44
HP : 216 / 1084
MP : 1088 / 29885
EXP: 38
離線
poloshiao 寫到:
hadoop@michael-Aspire-V3-571G:~/hadoop-1.1.2$ bin/start-all.sh

試試

1. 先 cd bin

start-all.sh

2. 如果不行
cd ~/
~/hadoop-1.1.2/bin/start-all.sh

無關
Hadoop 沒有相對路徑問題

2013/8/2 15:22
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
 Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW
 http://creativecommons.org/licenses/by/3.0/tw/

「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」
 by Allen Own
 出處 http://www.plurk.com/p/i4uogm

自由知識創作平台介紹
 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE
如何建立新的自由知識創作平台文件
 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA
應用擴展 工具箱


 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.