Re: issue about namenode format command

2013-10-23 Thread Arpit Gupta
Looks like the doc's on apache are missing this info. Format in Hadoop 2 supports the following options -format [-clusterid cid ] [-force] [-nonInteractive] -nonInteractive will not prompt but will fail if the name dir exists. -force will not prompt and will delete the contents of the name dir

Re: issue about namenode format command

2013-10-22 Thread Nitin Pawar
look at yes command in linux and see if you can use it. On other hand, its highly risky non-confirming namenode format on a cluster. On Wed, Oct 23, 2013 at 11:01 AM, ch huang wrote: > hi,all: > i want to do namenode format in script, how can run the format > command non-interactively

issue about namenode format command

2013-10-22 Thread ch huang
hi,all: i want to do namenode format in script, how can run the format command non-interactively thanks