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 / | wc -l 0 On Fri, Aug 10, 2012 at 4:34 AM, Stephen Boesch <java...@gmail.com> wrote: > > Hi, what's your take? I was thinking to check if a certain always-present > file exists via a hadoop dfs -ls <file> . Other suggestions welcome. > > thanks > > stephenb -- Harsh J