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
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
hi,all:
i want to do namenode format in script, how can run the format
command non-interactively
thanks