cp command in webhdfs (and Filesystem Java Object)

2016-06-28 Thread Jérôme BAROTIN
Hello, I'm writing this email, because, I spent one hour to look for a cp command in the webhdfs API (in fact, I'm using HTTPFS, but I think it's the same). This command is implemented in the "hdfs dfs" command line client (and I'm using this command), but, I can't find it on the webhdfs REST API

Re: cp command in webhdfs (and Filesystem Java Object)

2016-06-28 Thread Rohan Rajeevan
May be look at this? https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#CREATE If you are interested in intra cluster copy, may look at DistCp ? On Tue, Jun 28, 2016 at 9:36 AM, Jérôme BAROTIN wrote: > Hello, > > I'm writing this

Re: cp command in webhdfs (and Filesystem Java Object)

2016-06-29 Thread Jérôme BAROTIN
I'm not thinking that is the same : - CREATE is for a local file : in my case, I just want to copy one hdfs path to another on the same cluster - Distcp, is for copying file between two differents clusters. I'm using HTTPFs/webhdfsREST API to acces to my cluster, and I need to execute a "cp" comma

Re: cp command in webhdfs (and Filesystem Java Object)

2016-06-29 Thread Chris Nauroth
lo --Chris Nauroth From: Jérôme BAROTIN mailto:jer...@barotin.fr>> Date: Wednesday, June 29, 2016 at 12:44 AM To: Rohan Rajeevan mailto:rohan.rajee...@gmail.com>> Cc: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>" mailto:user@hadoop.apache.org>> Subject: Re

Re: cp command in webhdfs (and Filesystem Java Object)

2016-06-30 Thread Jérôme BAROTIN
ebhdfs://localhost:9870/hello1 > webhdfs://localhost:9870/hello2 > > > hadoop fs -cat webhdfs://localhost:9870/hello2 > hello > > --Chris Nauroth > > From: Jérôme BAROTIN > Date: Wednesday, June 29, 2016 at 12:44 AM > To: Rohan Rajeevan > Cc: "user@hadoop.apac