I have a simple question. I have a arraylist which i am populating through
db in main class. now i want to use the same list in my map and reduce class
so the question is how to access/send this array list in map and reduce
class. one way is to again fetch the data in mapper and reducer classes
which means 3 times db access and seems not suitable and other way either
could be define arraylist as static in main class and then access it or
might be using distributed cache.
so kindly let me know the best way of doing it