2013-08-31 10:29:31,241 ERROR : FSNamesystem initialization : /opt/data/hadoop/hdfs/name/current/VERSION (Permission denied) at (Native Method) at .(:212) at $(:237) at $(:233) at (:418) at (:110) at (:291) at .(:270) at (:271) at (:303) at .(:433) at .(:421) at $(:237) at $(:233) at (:418) at (:110) at (:291) at .(:270) at (:271) at (:303) at .(:433) at .(:421) at (:1359) at (:1368)
处理方式:
[root@master bin]# cd /opt/data/hadoop/hdfs/name/current/
[root@master current]# ls
edits fsimage fstime VERSION
[root@master current]# ll
total 32
-rw-r--r-- 1 root root 4 Aug 31 10:07 edits
-rw-r--r-- 1 root root 1753 Aug 31 10:07 fsimage
-rw-r--r-- 1 root root 8 Aug 31 10:07 fstime
-rw-r--r-- 1 root root 101 Aug 31 10:07 VERSION
[root@master current]# pwd
/opt/data/hadoop/hdfs/name/current
[root@master current]# chown hadoop:hadoop -R /opt/data/hadoop/hdfs/name/current/
切换到hadoop用户, 问题解决。
[hadoop@master bin]$ cd /opt/modules/hadoop/hadoop-0.21.0/bin
[hadoop@master bin]$ ls
hadoop mapred
hdfs
rcc
[hadoop@master bin]$ sh
This script is Deprecated. Instead use and
starting namenode, logging to /opt/modules/hadoop/hadoop-0.21.0/bin/../logs/
datanode2: datanode running as process 5909. Stop it first.
master: datanode running as process 10204. Stop it first.
datanode1: datanode running as process 5805. Stop it first.
master: starting secondarynamenode, logging to /opt/modules/hadoop/hadoop-0.21.0/bin/../logs/
jobtracker running as process 10450. Stop it first.
datanode2: tasktracker running as process 6007. Stop it first.
master: tasktracker running as process 10602. Stop it first.
datanode1: tasktracker running as process 5903. Stop it first.