Re: Help with java code to move data from local fs to HDFS

2012-06-22 Thread Sandeep Reddy P
Oh no i didn't its working now. Thanks for the reply. On Fri, Jun 22, 2012 at 11:30 AM, Prajakta Kalmegh wrote: > Did you provide the src and dest paths (args[0] and args[1])? > > > On Fri, Jun 22, 2012 at 8:56 PM, Sandeep Reddy P < > sandeepreddy.3...@gmail.com> wrote: > > > Hi Prajakta, > > Awe

Re: Help with java code to move data from local fs to HDFS

2012-06-22 Thread Prajakta Kalmegh
Did you provide the src and dest paths (args[0] and args[1])? On Fri, Jun 22, 2012 at 8:56 PM, Sandeep Reddy P < sandeepreddy.3...@gmail.com> wrote: > Hi Prajakta, > Awesome!! Thanks for the reply but got one more issue Exception in thread > "main" java.lang.ArrayIndexOutOfBoundsException: 0 >

Re: Help with java code to move data from local fs to HDFS

2012-06-22 Thread Sandeep Reddy P
Hi Prajakta, Awesome!! Thanks for the reply but got one more issue Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at FileCopy.main(FileCopy.java:17) On Fri, Jun 22, 2012 at 11:13 AM, Prajakta Kalmegh wrote: > Hi Sandeep > > I think it has to do with the org.apache.comm

Re: Help with java code to move data from local fs to HDFS

2012-06-22 Thread Prajakta Kalmegh
Hi Sandeep I think it has to do with the org.apache.commons.httpclient.URI class you are using. Use the create method from java.net.URI instead. I am not sure what example is given in the book, but org.apache.commons.httpclient.URI does not have a create method. Hopefully this helps. Let me know.