Kesalahan "Izin ditolak" ketika memulai satu simpul node di Hadoop

10

Saya bekerja di Ubuntu 10.10 dan saya mencoba untuk memulai satu cluster node di Hadoop.

hadoop@abraham-Dimension-3000:/usr/local/hadoop$ bin/start-all.sh
mkdir: cannot create directory `/usr/local/hadoop/bin/../logs': Permission denied
starting namenode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-namenode-abraham-Dimension-3000.out
/usr/local/hadoop/bin/hadoop-daemon.sh: line 117: /usr/local/hadoop/bin/../logs/hadoop-hadoop-namenode-abraham-Dimension-3000.out: No such file or directory
head: cannot open `/usr/local/hadoop/bin/../logs/hadoop-hadoop-namenode-abraham-Dimension-3000.out' for reading: No such file or directory
localhost: mkdir: cannot create directory `/usr/local/hadoop/bin/../logs': Permission denied
localhost: starting datanode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-datanode-abraham-Dimension-3000.out
localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 117: /usr/local/hadoop/bin/../logs/hadoop-hadoop-datanode-abraham-Dimension-3000.out: No such file or directory
localhost: head: cannot open `/usr/local/hadoop/bin/../logs/hadoop-hadoop-datanode-abraham-Dimension-3000.out' for reading: No such file or directory
localhost: mkdir: cannot create directory `/usr/local/hadoop/bin/../logs': Permission denied
localhost: starting secondarynamenode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-secondarynamenode-abraham-Dimension-3000.out
localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 117: /usr/local/hadoop/bin/../logs/hadoop-hadoop-secondarynamenode-abraham-Dimension-3000.out: No such file or directory
localhost: head: cannot open `/usr/local/hadoop/bin/../logs/hadoop-hadoop-secondarynamenode-abraham-Dimension-3000.out' for reading: No such file or directory
mkdir: cannot create directory `/usr/local/hadoop/bin/../logs': Permission denied
starting jobtracker, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-jobtracker-abraham-Dimension-3000.out
/usr/local/hadoop/bin/hadoop-daemon.sh: line 117: /usr/local/hadoop/bin/../logs/hadoop-hadoop-jobtracker-abraham-Dimension-3000.out: No such file or directory
head: cannot open `/usr/local/hadoop/bin/../logs/hadoop-hadoop-jobtracker-abraham-Dimension-3000.out' for reading: No such file or directory
localhost: mkdir: cannot create directory `/usr/local/hadoop/bin/../logs': Permission denied
localhost: starting tasktracker, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-tasktracker-abraham-Dimension-3000.out
localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 117: /usr/local/hadoop/bin/../logs/hadoop-hadoop-tasktracker-abraham-Dimension-3000.out: No such file or directory
localhost: head: cannot open `/usr/local/hadoop/bin/../logs/hadoop-hadoop-tasktracker-abraham-Dimension-3000.out' for reading: No such file or directory
hadoop@abraham-Dimension-3000:/usr/local/hadoop$ 

Saya tidak tahu apa yang saya lakukan salah atau apa yang disarankan beberapa kesalahan ini.

hadoop@abraham-Dimension-3000:/usr/local/hadoop$ jps
5099 Jps

Adakah yang bisa dengan mendiagnosis masalah.

ATMathew
sumber

Jawaban:

20

Kesalahan menyarankan masalah izin.

Pastikan bahwa pengguna hadoop memiliki hak istimewa yang tepat untuk /usr/local/hadoop. Mencoba:

sudo chown -R hadoop / usr / local / hadoop /
Mark Russell
sumber
Saya menghabiskan beberapa jam mencoba mencari tahu pengaturan apa yang harus saya ubah untuk membuat hadoop saya berfungsi. Dan akhirnya saya menemukan solusi yang cocok untuk saya. Terima kasih! :)
jjankowiak
1

Anda menentukan direktori kerja untuk sistem file hadoop dengan selain dari pengguna hadoop, jadi atur direktori yang telah membaca, tulis izin untuk pengguna hadoop atau ubah tawaran direktori
Coba ::

sudo chown -R hadoop-user /user/hadoop_project/

atau

sudo chmod 777 /user/hadoop_project

di mana nama login 'hadoop-user' untuk hadoop envirnoment. direktori kerja yang ditentukan 'hadoop-project' untuk sistem file hadoop. (tentukan login dan direktori Anda sendiri yang Anda gunakan untuk instalasi hadoop)

sudhakara.st
sumber