What Distributed Cache is actually used for in Hadoop?

0 votes
I am confused about the functionality of distributed cache? I have referred to multiple blogs but I still not able to properly understand what actually distibuted cache does?

Basically, I would like to know that by caching a file using distributed cache, is it stored or copied into every datanode? If not, does it mean copying the data into memory of each data node?
Apr 2, 2018 in Big Data Hadoop by Damon Salvatore
• 5,390 points
90 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Basically distributed cache allows you to cache files that are need for your Map-Reduce jobs. Once you use distributed cache to cache a file for a job, it will be accessed by all the slave nodes (worker nodes) of the hadoop cluster. Basically, hadoop copies the cached files on the slave nodes' file system so that it can be accessed on that node. This copying of the file happens before any task w.r.t a job is executed on that node.

For further read and usage, you can refer to the official documentation: https://hadoop.apache.org/docs/r2.6.3/api/org/apache/hadoop/filecache/DistributedCache.html

Let me know in case you need anything else...
answered Apr 2, 2018 by Ashish
• 2,630 points

Related Questions In Big Data Hadoop

0 votes
1 answer

What is distributed Cache in MapReduce Framework ?

Distributed Cache is an important feature provided ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Frankie
• 9,710 points
87 views
0 votes
1 answer
0 votes
12 answers

What is Zookeeper? What is the purpose of Zookeeper in Hadoop Ecosystem?

Hey, Apache Zookeeper says that it is a ...READ MORE

answered Apr 29 in Big Data Hadoop by Gitika
• 13,350 points
2,710 views
0 votes
10 answers
0 votes
1 answer

What is the function of getLocalCacheArchives method?

We use distributed cache to share those ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 12,710 points
21 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,310 points
1,818 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,310 points
149 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
8,988 views
0 votes
1 answer

What is the use of sequence file in Hadoop?

Sequence files are binary files containing serialized ...READ MORE

answered Apr 5, 2018 in Big Data Hadoop by Ashish
• 2,630 points
500 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.