Re: Recommended way to check if namenode already formatted

2012-08-09 Thread Frederick Kautz
Also, VERSION appears in the operating system's filesystem, not on HDFS. Check out the dfs.name.dir property in ${HADOOP_HOME}/conf/hdfs-site.xml for the location. The file is current/VERSION. On Thu, Aug 9, 2012 at 4:41 PM, Harsh J wrote: > Stephen, > > A NameNode can be considered 'formatted'

Re: Recommended way to check if namenode already formatted

2012-08-09 Thread Harsh J
Stephen, A NameNode can be considered 'formatted' if its up (it does not start otherwise). If you mean to check if the NameNode has been _freshly_ formatted, then checking the count of "hadoop fs -ls /" to be non-zero may help, cause by default the NameNode carries no files. $ hadoop fs -ls / |

Re: Recommended way to check if namenode already formatted

2012-08-09 Thread Stephen Boesch
Hi, VERSION does not appear to show up when running "hadoop dfs -lsr /" it displays the files previously placed into hdfs . but nothing about VERSION. I can see the VERSION file on the datanodes under the hdfs managed data directoy find /data | xargs ls -lrta | grep VERSION -rw-rw

Re: Recommended way to check if namenode already formatted

2012-08-09 Thread Mohammad Tariq
Hello Stephen, You can use the VERSION file to verify that. Regards, Mohammad Tariq On Fri, Aug 10, 2012 at 4:34 AM, Stephen Boesch wrote: > > Hi, what's your take? I was thinking to check if a certain always-present > file exists via a hadoop dfs -ls . Other suggestions welcom