Thanks a lot Amareshwari!
Though I have gone through this code earlier I was unsuccessful at that
time. Now I went through it again, and retried. Now it's working fine.
One thing that I would point out here is that (for anybody else who may
refer to this thread) that after unarchiving the archive file hadoop doesnot
change it's name e.g. If you distributed sample.tar, it will be unarchived
to a "sample.tar" directory and not "sample".
Thanks Again,
Akhil
Amareshwari Sriramadasu wrote:
>
> The same works fine in the testcase TestMiniMRDFSCaching. Can you look
> at the testcase and see if it make sense for you?
> Thanks
> Amareshwari
> akhil1988 wrote:
>> HI All,
>>
>> Has anyone tried this method? Please, let me know I am struck at this.
>>
>> Thanks,
>> Akhil
>>
>>
>> akhil1988 wrote:
>>
>>> Hi All,
>>>
>>> I am using DistributedCache.addCacheArchives() to distribute a tar file
>>> to
>>> the tasktrackers using the following statement.
>>>
>>> DistributedCache.addCacheArchives(new URI("/home/akhil1988/sample.tar"),
>>> conf);
>>>
>>> According to the documentation it should get unarchived at the
>>> tasktrackers. But the statement:
>>>
>>> DistributedCache.getLocalCacheArchives(conf);
>>>
>>> returns the following Path
>>>
>>> /hadoop/tmp/hadoop/mapred/local/taskTracker/archive/cn1.cloud.cs.illinois.edu/home/akhil1988/sample.tar
>>>
>>> That means sample.tar did not get unarchived.
>>> Nor I am able to access file sample.txt in the above folder.
>>>
>>> Can anyone tell where I am going wrong?
>>>
>>> I tarred the file sample.txt using the following command: tar -cvf
>>> sample.tar sample.txt
>>>
>>> Thanks,
>>> Akhil
>>>
>>>
>>
>>
>
>
>
--
View this message in context:
http://www.nabble.com/Archives-not-getting-unarchived-at-tasktrackers-tp24233281p24301422.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.