Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HDFS, mail # user - Program trying to read from local instead of hdfs

jamal sasha 2013-01-17, 23:56
Mohammad Tariq 2013-01-18, 00:00
jamal sasha 2013-01-18, 00:06
Jay Vyas 2013-01-18, 00:16
Mohammad Tariq 2013-01-18, 00:14
jamal sasha 2013-01-18, 00:18
Copy link to this message
Re: Program trying to read from local instead of hdfs
Mohammad Tariq 2013-01-18, 01:04
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 :


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,
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?