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. -- Arpit Gupta Hortonworks Inc. http://hortonworks.com/ On Oct 22, 2013, at 10:31 PM, ch huang <[email protected]> wrote: > hi,all: > i want to do namenode format in script, how can run the format > command non-interactively > > thanks -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
