What procedure do i need to follow to properly add a new NameNode data directory (dfs.name.dir, dfs.namenode.name.dir) to an existing production cluster? I have added the new path to the comma-delimited list in the hdfs-site.xml file but when i try to start the namenode i get the following error:
Directory /data/nfs/dfs/nn is in an inconsistent state: storage directory does not exist or is not accessible.
In my case, i have two directories already in place and working. (/data/1/dfs/nn,/data/2/dfs/nn) When i add the new directory I can't start the namenode. When the new path is removed, it starts just fine. My fstab for the new directory looks like this:
backup-server:/hadoop_nn /data/nfs/dfs nfs tcp,soft,intr,timeo=10,retrans=10 1 2
In the above mount point I have created a folder called nn. That folder has identical ownership and permissions to the other two existing locations nn folder.
drwx------ 2 hdfs hadoop 64 Jan 22 16:30 nn
Do i need to manually replicate/copy all the files from one of the existing namenode directories or should the namenode service do that automatically when it's started?
/data/nfs/dfs(your mount point) permit thehdfsuser to enter the directory? - phshdfsuser andhadoopgroup have the same uid (gid) on the NFS server and client? - phs