Yes I fixed the uri and it worked
Thanks On 28 Aug 2013 14:11, "Harsh J" <ha...@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 <rab...@gmail.com> wrote: > > ---------- Forwarded message ---------- > > From: "rab ra" <rab...@gmail.com> > > Date: 28 Aug 2013 13:26 > > Subject: Issue with fs.delete > > To: "us...@hadoop.apache.org" <us...@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 >