Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D7C111EC0 for ; Wed, 2 Jul 2014 13:32:10 +0000 (UTC) Received: (qmail 88667 invoked by uid 500); 2 Jul 2014 13:32:06 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 88566 invoked by uid 500); 2 Jul 2014 13:32:05 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 88549 invoked by uid 99); 2 Jul 2014 13:32:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 13:32:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hadoophive@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 13:32:01 +0000 Received: by mail-qa0-f41.google.com with SMTP id cm18so8981040qab.14 for ; Wed, 02 Jul 2014 06:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IpdPztOJ0o+MF9bQbwNsu9uJUFxdRxQ1/2/dUUHSgpY=; b=rVph8Ebo058eLhl8KnkCIVzk/KjM+ASiaqxy0WPuKwOOnq4jh6GD6b73UhikX9SWTj /hjoQ/drtPfVy3gtJxdk04LQq7ktTbfdXX02RQ42YujTnwYMm/9Lay64VGycxH/hJhm2 aca7pp+SwHiJKyS1+o1KKday3FBuy5TvPnXinYnTG9bJI9H+iB1L6D5nLV1Ue6ssdpIU 4qaUHfKFEX+3bnNQOoP2+eTMXtlgX0R6tRJ3zMllGk1Y1FdmfjRvee+OxHsiDaUl8uqg 5SJVXklhbvsAOsBFevLperjM3GWADppS4ZK9w43cKgnsGznaRi+15x6ew59vtqjR+xkT tH/Q== MIME-Version: 1.0 X-Received: by 10.140.84.168 with SMTP id l37mr79549410qgd.104.1404307898135; Wed, 02 Jul 2014 06:31:38 -0700 (PDT) Received: by 10.140.98.164 with HTTP; Wed, 2 Jul 2014 06:31:38 -0700 (PDT) Received: by 10.140.98.164 with HTTP; Wed, 2 Jul 2014 06:31:38 -0700 (PDT) In-Reply-To: References: <0905DC9CDF1D45E98378462A8BCA2891@P200304006390> Date: Wed, 2 Jul 2014 19:01:38 +0530 Message-ID: Subject: Re: hadoop directory can't add and remove From: hadoop hive To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c117086c7efe04fd35e90e X-Virus-Checked: Checked by ClamAV on apache.org --001a11c117086c7efe04fd35e90e Content-Type: text/plain; charset=UTF-8 Use Hadoop dfsadmin -safemode leave Then you can delete On Jul 2, 2014 6:37 PM, "Chris Mawata" wrote: > The NameNode is in safe mode so it is read only. > On Jul 2, 2014 2:28 AM, "EdwardKing" 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. >> >> --------------------------------------------------------------------------------------------------- >> > --001a11c117086c7efe04fd35e90e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Use Hadoop dfsadmin -safemode leave

Then you can delete

On Jul 2, 2014 6:37 PM, "Chris Mawata"= <chris.mawata@gmail.com&g= t; wrote:

The NameNode is in safe mode so it is read only.

On Jul 2, 2014 2:28 AM, "EdwardKing" &= lt;zhangsc@neusoft= .com> wrote:
I want to remove hadoop directory,so I use hadoop= =20 fs -rmr,but it can't remove,why?
=C2=A0
[hdfs@localhost hadoop-2.2.0]$ hadoop fs=20 -ls
Found 2 items
drwxr-xr-x=C2=A0=C2=A0 - hdfs=20 supergroup=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 2014-07-= 01=20 17:52 QuasiMonteCarlo_1404262305436_855154103
drwxr-xr-x=C2=A0=C2=A0 - h= dfs=20 supergroup=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 2014-07-= 01=20 18:17 QuasiMonteCarlo_1404263830233_477013424

[hdfs@localhost hadoop-2.2.0]$ hadoop fs -rmr *.*
rmr: DEPRECAT= ED:=20 Please use 'rm -r' instead.
rmr: `LICENSE.txt': No such file= or=20 directory
rmr: `NOTICE.txt': No such file or directory
rmr: `READ= ME.txt':=20 No such file or directory

[hdfs@localhost hadoop-2.2.0]$ hadoop fs -la
Found 2 items
drwxr-xr-x=C2=A0=C2=A0 - hdfs=20 supergroup=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 2014-07-= 01=20 17:52 QuasiMonteCarlo_1404262305436_855154103
drwxr-xr-x=C2=A0=C2=A0 - h= dfs=20 supergroup=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 2014-07-= 01=20 18:17 QuasiMonteCarlo_1404263830233_477013424
=C2=A0
And I try mkdir a directory,but I still=20 fail
[hdfs@localhost hadoop-2.2.0]$ hadoop fs -mkdir= =20 abc
mkdir: Cannot create directory /user/hdfs/abc. Name node is in safe= =20 mode.
=C2=A0
How can I do it?=C2=A0 Thanks.

---------------------------------------------------------= ------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any ac= companying attachment(s)
is intended only for the use of the intended recipient and may be confident= ial 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,=C2=A0 s= toring, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this commu= nication in error,please
immediately notify the sender by return e-mail, and delete the original mes= sage and all copies from
your system. Thank you.
---------------------------------------------------------------------------= ------------------------

--001a11c117086c7efe04fd35e90e--