DistributedCache could help you. http://hadoop.apache.org/common/docs/r0.20.2/mapred_tutorial.html#DistributedCache
On Fri, Jan 28, 2011 at 6:47 PM, Joan <joan.monp...@gmail.com> wrote: > 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 > -- -----李平