Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 E8E541031C for ; Wed, 28 Aug 2013 09:03:05 +0000 (UTC) Received: (qmail 34680 invoked by uid 500); 28 Aug 2013 09:03:00 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 34570 invoked by uid 500); 28 Aug 2013 09:02:59 -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 34562 invoked by uid 99); 28 Aug 2013 09:02:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 09:02:59 +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 (nike.apache.org: domain of rabmdu@gmail.com designates 209.85.212.51 as permitted sender) Received: from [209.85.212.51] (HELO mail-vb0-f51.google.com) (209.85.212.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 09:02:53 +0000 Received: by mail-vb0-f51.google.com with SMTP id x16so3765508vbf.38 for ; Wed, 28 Aug 2013 02:02:33 -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=6xw6b6w+9JAN5VFLMeaA0X8tgWwCtzakRVuCBGCskIk=; b=vp9l4kJCCZEC/SnxsjSAbDELbLL3cTdjL5934uw5ZgeuOrUpHRKNz6B0ycBgZJBM9Y vljUV6aQ5zcyuD5Q/36ENxbRGaUoLAyuXc8o3Gqgxln2KaYYNAeyuJRDGu/BW/XfBzIw iqdncVddaY7TW3yjDiStc7ox1R0YpCd3wQQJLR5wwnE7OY72e29iGwh5LsKNpUg1bXsY XxWxm6JhM5+JLOgrYfG4VbV833P09DWXg3Egylb7OvHBCIqLPRM8xR1eLBfnh8WvMqls H3OqPa81QXyd0Kxl8j+YcbYw3yqFIGg/CflTKzRo2NkJDt3qcv9048r7YFmqCsJ8dlt6 Zl5w== MIME-Version: 1.0 X-Received: by 10.220.206.195 with SMTP id fv3mr24570101vcb.15.1377680552932; Wed, 28 Aug 2013 02:02:32 -0700 (PDT) Received: by 10.220.169.12 with HTTP; Wed, 28 Aug 2013 02:02:32 -0700 (PDT) Received: by 10.220.169.12 with HTTP; Wed, 28 Aug 2013 02:02:32 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 14:32:32 +0530 Message-ID: Subject: Re: Issue with fs.delete From: rab ra To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c2a8c0f8bcc604e4fe3f17 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2a8c0f8bcc604e4fe3f17 Content-Type: text/plain; charset=ISO-8859-1 Yes I fixed the uri and it worked Thanks On 28 Aug 2013 14:11, "Harsh J" wrote: > Please also try to share your error/stacktraces when you post a question. > > All I can suspect is that your URI is malformed, and is missing the > authority component. That is, it should be > hdfs://host:port/path/to/file and not hdfs:/path/to/file. > > On Wed, Aug 28, 2013 at 1:44 PM, rab ra wrote: > > ---------- Forwarded message ---------- > > From: "rab ra" > > Date: 28 Aug 2013 13:26 > > Subject: Issue with fs.delete > > To: "users@hadoop.apache.org" > > > > Hello, > > > > I am having a trouble in deleting a file from hdfs. I am using hadoop > 1.2.1 > > stable release. I use the following code segment in my program > > > > > > fs.delete(new Path("hdfs:/user//input/input.txt")) > > fs.copyFromLocalFile(false,false,new Path("input.txt"),new > > Path("hdfs:/user//input/input.txt")) > > > > Any hint? > > > > > > > > -- > Harsh J > --001a11c2a8c0f8bcc604e4fe3f17 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Yes

I fixed the uri and it worked

Thanks

On 28 Aug 2013 14:11, "Harsh J" <harsh@cloudera.com> wrote:
Please also try to share your error/stacktraces when you post a question.
All I can suspect is that your URI is malformed, and is missing the
authority component. That is, it should be
hdfs://host:port/path/to/file and not hdfs:/path/to/file.

On Wed, Aug 28, 2013 at 1:44 PM, rab ra <rabmdu@gmail.com> wrote:
> ---------- Forwarded message ----------
> From: "rab ra" <rabmd= u@gmail.com>
> Date: 28 Aug 2013 13:26
> Subject: Issue with fs.delete
> To: "users@hadoop.apac= he.org" <users@hadoo= p.apache.org>
>
> Hello,
>
> I am having a trouble in deleting a file from hdfs. I am using hadoop = 1.2.1
> stable release. I use the following code segment in my program
>
>
> fs.delete(new Path("hdfs:/user/<username>/input/input.txt&q= uot;))
> =A0 =A0 =A0 =A0 =A0 =A0 fs.copyFromLocalFile(false,false,new Path(&quo= t;input.txt"),new
> Path("hdfs:/user/<username>/input/input.txt"))
>
> Any hint?
>
>



--
Harsh J
--001a11c2a8c0f8bcc604e4fe3f17--