hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rab ra <rab...@gmail.com>
Subject Re: Issue with fs.delete
Date Wed, 28 Aug 2013 09:02:32 GMT
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" <rabmdu@gmail.com>
> > Date: 28 Aug 2013 13:26
> > Subject: Issue with fs.delete
> > To: "users@hadoop.apache.org" <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/<username>/input/input.txt"))
> >             fs.copyFromLocalFile(false,false,new Path("input.txt"),new
> > Path("hdfs:/user/<username>/input/input.txt"))
> >
> > Any hint?
> >
> >
>
>
>
> --
> Harsh J
>

Mime
View raw message