Not an issue :) Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com
On Fri, Jan 18, 2013 at 9:38 AM, jamal sasha <[email protected]> wrote: > Hi, > Just saw your email. I was so tired with this issue that the moment it > ran, I took a time off. I will get back to you soon :) > thanks > > > On Thu, Jan 17, 2013 at 5:04 PM, Mohammad Tariq <[email protected]>wrote: > >> Which Hadoop version are you using? That post is quite old. >> Try the same same thing using the new API. Also, modify the >> above 2 lines to : >> >> conf.addResource(new >> File("/hadoop/projects/hadoop-1.0.4/conf/core-site.xml").getAbsoluteFile().toURI().toURL()); >> conf.addResource(new >> File("/hadoop/projects/hadoop-1.0.4/conf/hdfs-site.xml").getAbsoluteFile().toURI().toURL()); >> >> Sometimes if the resource is added as a String and not as s URL, >> it is interpreted as a classpath resource, which I think is not getting >> resolved here. >> >> Let me know if this works. Just to confirm whether I am correct >> or not. >> >> Warm Regards, >> Tariq >> https://mtariq.jux.com/ >> cloudfront.blogspot.com >> >> >> On Fri, Jan 18, 2013 at 5:48 AM, jamal sasha <[email protected]>wrote: >> >>> >>> On Thu, Jan 17, 2013 at 4:14 PM, Mohammad Tariq <[email protected]>wrote: >>> >>>> hdfs://your_namenode:9000/user/hduser/data/input1.txt >>>> >>> >>> It runs :D >>> But I am very curious. if i run the sample wordcount example normally .. >>> it automatically reads from the hdfs location.. >>> but here.. it didnt seemed to respect that? >>> >> >> >
