hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Mawata <chris.maw...@gmail.com>
Subject Re: hadoop directory can't add and remove
Date Wed, 02 Jul 2014 13:06:50 GMT
The NameNode is in safe mode so it is read only.
On Jul 2, 2014 2:28 AM, "EdwardKing" <zhangsc@neusoft.com> wrote:

>  I want to remove hadoop directory,so I use hadoop fs -rmr,but it can't
> remove,why?
>
> [hdfs@localhost hadoop-2.2.0]$ hadoop fs -ls
> Found 2 items
> drwxr-xr-x   - hdfs supergroup          0 2014-07-01 17:52
> QuasiMonteCarlo_1404262305436_855154103
> drwxr-xr-x   - hdfs supergroup          0 2014-07-01 18:17
> QuasiMonteCarlo_1404263830233_477013424
>
> [hdfs@localhost hadoop-2.2.0]$ hadoop fs -rmr *.*
> rmr: DEPRECATED: Please use 'rm -r' instead.
> rmr: `LICENSE.txt': No such file or directory
> rmr: `NOTICE.txt': No such file or directory
> rmr: `README.txt': No such file or directory
>
> [hdfs@localhost hadoop-2.2.0]$ hadoop fs -la
> Found 2 items
> drwxr-xr-x   - hdfs supergroup          0 2014-07-01 17:52
> QuasiMonteCarlo_1404262305436_855154103
> drwxr-xr-x   - hdfs supergroup          0 2014-07-01 18:17
> QuasiMonteCarlo_1404263830233_477013424
>
> And I try mkdir a directory,but I still fail
> [hdfs@localhost hadoop-2.2.0]$ hadoop fs -mkdir abc
> mkdir: Cannot create directory /user/hdfs/abc. Name node is in safe mode.
>
> How can I do it?  Thanks.
>
>
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
>
> ---------------------------------------------------------------------------------------------------
>

Mime
View raw message