You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by ch huang <ju...@gmail.com> on 2013/10/23 07:31:55 UTC

issue about namenode format command

hi,all:
        i want to do namenode format in script, how can run the format
command non-interactively

thanks

Re: issue about namenode format command

Posted by Arpit Gupta <ar...@hortonworks.com>.
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 <ju...@gmail.com> 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.

Re: issue about namenode format command

Posted by Nitin Pawar <ni...@gmail.com>.
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 <ju...@gmail.com> wrote:

> hi,all:
>         i want to do namenode format in script, how can run the format
> command non-interactively
>
> thanks
>



-- 
Nitin Pawar

Re: issue about namenode format command

Posted by Nitin Pawar <ni...@gmail.com>.
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 <ju...@gmail.com> wrote:

> hi,all:
>         i want to do namenode format in script, how can run the format
> command non-interactively
>
> thanks
>



-- 
Nitin Pawar

Re: issue about namenode format command

Posted by Arpit Gupta <ar...@hortonworks.com>.
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 <ju...@gmail.com> 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.

Re: issue about namenode format command

Posted by Arpit Gupta <ar...@hortonworks.com>.
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 <ju...@gmail.com> 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.

Re: issue about namenode format command

Posted by Arpit Gupta <ar...@hortonworks.com>.
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 <ju...@gmail.com> 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.

Re: issue about namenode format command

Posted by Nitin Pawar <ni...@gmail.com>.
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 <ju...@gmail.com> wrote:

> hi,all:
>         i want to do namenode format in script, how can run the format
> command non-interactively
>
> thanks
>



-- 
Nitin Pawar

Re: issue about namenode format command

Posted by Nitin Pawar <ni...@gmail.com>.
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 <ju...@gmail.com> wrote:

> hi,all:
>         i want to do namenode format in script, how can run the format
> command non-interactively
>
> thanks
>



-- 
Nitin Pawar