use -PhadoopVersion in build to switch between hadoop 1 and 2