How can I create a global variable for each node running my map task. For example, a common ArrayList that my map function can access for every k,v pair it works on. It doesnt really need to create the ArrayList everytime.
If I create it in the main function of the job, the map function gets a null pointer exception. Where else can this be created? Amandeep Amandeep Khurana Computer Science Graduate Student University of California, Santa Cruz