hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan <joan.monp...@gmail.com>
Subject How to get file configuration from mapper
Date Fri, 28 Jan 2011 10:47:10 GMT
Hi

I'm trying to access to my custom configuration file (myconfig.xml) from
MyMapper.

So I'm doing:

*File configurationFile = new File("./conf/", "myconfig.xml");*

But when I see the absolute path from configuration file I get:

*
/tmp/hadoop-user/mapred/local/taskTracker/user/jobcache/job_201101260830_0000/attempt_201101260830_0000_m_000000_0/work/./conf/myconfig.xml
*

So this produces a error because It tries to get myconfig.xml but It doesn't
find it.

*Initial cause was ./conf/myconfig.xml (No such file or directory)*

Someone can I help me?

Thanks

Joan

Mime
View raw message