hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Metelsky <bob.metel...@gmail.com>
Subject NameNode: java.io.IOException: Cannot create directory current
Date Sun, 17 Mar 2013 02:21:58 GMT
Hi All - setting up a 3 node cluster as a poc, Ive googled this error and
many incomplete responses

My effort  following from
http://dak1n1.com/blog/9-hadoop-el6-install


creating my directories as..

for num in 1 2 3 4; do mkdir -p /hdfs/$num/{namenode,datanode,mapred};
done;
chown -R hdfs:hadoop /hdfs;
chown -R mapred:hadoop /hdfs/{1,2,3,4}/mapred


all the directories have correct owner:permission but when I

sudo -u hdfs hadoop namenode -format


13/03/16 21:58:28 INFO namenode.FSNamesystem: fsOwner=hdfs (auth:SIMPLE)
13/03/16 21:58:28 INFO namenode.FSNamesystem: supergroup=supergroup
13/03/16 21:58:28 INFO namenode.FSNamesystem: isPermissionEnabled=true
13/03/16 21:58:28 INFO namenode.FSNamesystem:
dfs.block.invalidate.limit=1000
13/03/16 21:58:28 INFO namenode.FSNamesystem: isAccessTokenEnabled=false
accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
13/03/16 21:58:29 INFO common.Storage: Image file of size 110 saved in 0
seconds.
13/03/16 21:58:29 INFO common.Storage: Storage directory /hdfs/1/namenode
has been successfully formatted.
*13/03/16 21:58:29 ERROR namenode.NameNode: java.io.IOException: Cannot
create directory '/hdfs/2/namenode/current*

Ive double checked everything permissions -Ive tested by chmod -R  777
/hdfs teh process still cant write to it.

Notice it does create the image directory AND a "current"  on .../1/namenode

/hdfs/1:
total 12
drwxr-xr-x 4 hdfs   hadoop 4096 Mar 16 21:58 namenode
drwxr-xr-x 2 hdfs   hadoop 4096 Mar 16 21:25 datanode
drwxr-xr-x 2 mapred hadoop 4096 Mar 16 21:25 mapred

/hdfs/1/namenode:
total 8
drwxr-xr-x 2 hdfs hadoop 4096 Mar 16 21:58 current
drwxr-xr-x 2 hdfs hadoop 4096 Mar 16 21:27 image

/hdfs/1/namenode/current:
total 16
-rw-r--r-- 1 hdfs hadoop 100 Mar 16 21:58 VERSION
-rw-r--r-- 1 hdfs hadoop   8 Mar 16 21:58 fstime
-rw-r--r-- 1 hdfs hadoop   4 Mar 16 21:58 edits
-rw-r--r-- 1 hdfs hadoop 110 Mar 16 21:58 fsimage

/hdfs/1/namenode/image:
total 4
-rw-r--r-- 1 hdfs hadoop 157 Mar 16 21:58 fsimage


but will not go past /hdfs/1

WHat is going on here??

THANKS!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message