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