I followed this thread and happy it finally worked for you. Can you 
summerise for our benefit what was the final working alteration of the 
code in your initial thread note?
Thanks!!



From:
akhil1988 <[email protected]>
To:
[email protected]
Date:
03/07/2009 06:59 AM
Subject:
Re: Using addCacheArchive




Thanks Tim!

It works now. You are right, that I should ask the cache where they are 
and
use that path. Actually, this was the mistake I was doing. I assumed that
Config.zip will get unzipped to Config directory but actually Hadoop 
unzips
it to Config.zip only, that is it does not change it's name.

Thanks,
Akhil



Ted Dunning wrote:
> 
> This code assumes that the files are in the working directory of the
> mapper.
> 
> You should ask the cache where they are instead nad use the the paths 
that
> it gives you.
> 
> See the code on this page:
> 
>       http://developer.yahoo.com/hadoop/tutorial/module5.html#auxdata
> 
> On Fri, Jun 26, 2009 at 5:55 PM, akhil1988 <[email protected]> wrote:
> 
>> FileInputStream fin = new FileInputStream("Config/file1.config");
>>
>> where,
>> Config is a directory which contains many files/directories, one of 
which
>> is
>> file1.config
>>
>> It would be helpful to me if you can tell me what statements to use to
>> distribute a directory to the tasktrackers.
>> The API doc http://hadoop.apache.org/core/docs/r0.20.0/api/index.html
>> says
>> that archives are unzipped on the tasktrackers but I want an example of
>> how
>> to use this in case of a dreictory.
> 
> 
> 
> 
> -- 
> Ted Dunning, CTO
> DeepDyve
> 
> 111 West Evelyn Ave. Ste. 202
> Sunnyvale, CA 94086
> http://www.deepdyve.com
> 858-414-0013 (m)
> 408-773-0220 (fax)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-addCacheArchive-tp24207739p24317261.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.



Reply via email to