Attach first version of the patch, changes:
1. bugfix use hadoop-mapreduce-client-common normal jar rather than test-jar
2. invoke nttest in maven native build
3. remove copy test.sh in pom.xml, use cmake configure_file instead, which can pass libjvm.so path to test script.
Note that the run mvn test -Pnative still fail(or OOM) cause some java tests are still failing, I skip all java tests by running:
mvn test -Pnative -Dtest=ddd
Manually tested on macos and ubuntu, native tests run successfully.