Fixed NoClassDefFoundError exception related to Apache Hadoop DistCp tool

* Hadoop 1 and Hadoop 2 have different implementation of DistCp with different constructors.
* The fix uses reflection to make DistCp in the sample code to work with both Hadoop 1 and Hadoop 2.