hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhijit Sarkar <abhijit.sar...@gmail.com>
Subject Re: Issue with fs.delete
Date Thu, 29 Aug 2013 23:57:35 GMT
Wow this is one helluva forum where people needing help leave the problem
to the expert's imagination. Even paid  support would close a ticket like
that without looking twice.


On Wed, Aug 28, 2013 at 4:40 AM, 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