Adding bootstrap and destroy to mapreduce