Re: Error:Hdfs Client for hadoop using native java api

2012-07-30 Thread Shailesh Samudrala
Hi Sandeep, Can you tell us how you fixed it please. On Sun, Jul 22, 2012 at 2:48 PM, Sandeep Reddy P < sandeepreddy.3...@gmail.com> wrote: > Thank you every one for the help. Issue is fixed. > > On Sun, Jul 22, 2012 at 4:31 PM, shashwat shriparv < > dwivedishash...@gmail.com> wrote: > > > there

Re: Error:Hdfs Client for hadoop using native java api

2012-07-22 Thread Sandeep Reddy P
Thank you every one for the help. Issue is fixed. On Sun, Jul 22, 2012 at 4:31 PM, shashwat shriparv < dwivedishash...@gmail.com> wrote: > there may be a problem with hostname resolution check if it is forward and > backword resolvable...and if you have any ip address anywhere please > replace it

Re: Error:Hdfs Client for hadoop using native java api

2012-07-22 Thread shashwat shriparv
there may be a problem with hostname resolution check if it is forward and backword resolvable...and if you have any ip address anywhere please replace it with hostname and the try.. On Sun, Jul 22, 2012 at 9:56 PM, Minh Duc Nguyen wrote: > As Shaswat mentioned previously, you're problem may be

Re: Error:Hdfs Client for hadoop using native java api

2012-07-22 Thread Minh Duc Nguyen
As Shaswat mentioned previously, you're problem may be related to your configuration. Is core-site.xml on your classpath? For example, what is the value for conf.get("fs.default.name")? Alternatively, you can set this property directly in your code: conf.set("fs.default.name", "hdfs://hadoop1.d

Re: Error:Hdfs Client for hadoop using native java api

2012-07-19 Thread Sandeep Reddy P
Hi Shashwat, Here is the snippet of code which is throwing error Path phdfs = new Path( "hdfs://hadoop1.devqa.local:8020/user/hdfs/java/"); java.lang.IllegalArgumentException: Wrong FS: hdfs://hadoop1.devqa.local:8020/user/hdfs/java, expected: file:/// at org.apache.hado

Re: Error:Hdfs Client for hadoop using native java api

2012-07-19 Thread shashwat shriparv
Or try something like this Configuration conf = new Configuration(); FileSystem fs = FileSystem.get(conf); HFile.Writer hwriter = new HFileWriterV2(conf, new CacheConfig(conf), fs, new Path(fs.getWorkingDirectory() + "/foo")); On Thu, Jul 19, 2012 at 9:35 PM, shashwat shriparv

Re: Error:Hdfs Client for hadoop using native java api

2012-07-19 Thread shashwat shriparv
By the way you have these two options 1. Put the configuration files in the classpath, so that the code picks it. 2. Use Configuration.set()to s

Re: Error:Hdfs Client for hadoop using native java api

2012-07-19 Thread shashwat shriparv
Can you provide the code(some part of it if you don't want to throw the full code here) and let us know which part of your code is throwing this error. Regards ∞ Shashwat Shriparv On Thu, Jul 19, 2012 at 6:46 PM, Sandeep Reddy P < sandeepreddy.3...@gmail.com> wrote: > Hi John, > We have appli

Re: Error:Hdfs Client for hadoop using native java api

2012-07-19 Thread Sandeep Reddy P
Hi John, We have applications in windows. So our dev's need to connect to HDFS from eclipse installed in windows. I'm trying to put data from to using java code from windows. On Thu, Jul 19, 2012 at 5:41 AM, John Hancock wrote: > Sandeep, > > I don't understand your situation completely, but wh

Re: Error:Hdfs Client for hadoop using native java api

2012-07-19 Thread John Hancock
Sandeep, I don't understand your situation completely, but why not just use bin/hadoop dfs -copyFromLocal ? -John On Wed, Jul 18, 2012 at 11:33 AM, Sandeep Reddy P < sandeepreddy.3...@gmail.com> wrote: > Hi, > I'm trying to load data into hdfs from local linux file system using java > code fr