Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Compile Hadoop 2.4.1 (with Tests and Without Tests)


Copy link to this message
-
Compile Hadoop 2.4.1 (with Tests and Without Tests)
Hi,

I am trying to compile Hadoop 2.4.1.

If I run "mvm clean install -DskipTests", the compilation is GOOD,
However, if I run "mvn clean install”, i.e. didn’t skip the Tests, it returned “Failures”

Can anyone please advise what should be prepared before unit tests in compilation?  From the error log, e.g. I found it used 192.168.12.37, but this was not my local IPs, should I change some configure file? any ideas?
On the other hand, can I use the the compiled code from GOOD compilation and just ignore the failed tests?

Please advise!!

Regards
Arthur
Compilation results:
run "mvm clean install -DskipTests", the compilation is GOOD,
=====
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [1.756s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [0.586s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1.282s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [0.257s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.136s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [1.189s]
[INFO] Apache Hadoop MiniKDC ............................. SUCCESS [0.837s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [0.835s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [0.614s]
[INFO] Apache Hadoop Common .............................. SUCCESS [9.020s]
[INFO] Apache Hadoop NFS ................................. SUCCESS [9.341s]
[INFO] Apache Hadoop Common Project ...................... SUCCESS [0.013s]
[INFO] Apache Hadoop HDFS ................................ SUCCESS [1:11.329s]
[INFO] Apache Hadoop HttpFS .............................. SUCCESS [1.943s]
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SUCCESS [8.236s]
[INFO] Apache Hadoop HDFS-NFS ............................ SUCCESS [0.181s]
[INFO] Apache Hadoop HDFS Project ........................ SUCCESS [0.014s]
[INFO] hadoop-yarn ....................................... SUCCESS [0.045s]
[INFO] hadoop-yarn-api ................................... SUCCESS [3.080s]
[INFO] hadoop-yarn-common ................................ SUCCESS [3.995s]
[INFO] hadoop-yarn-server ................................ SUCCESS [0.036s]
[INFO] hadoop-yarn-server-common ......................... SUCCESS [0.406s]
[INFO] hadoop-yarn-server-nodemanager .................... SUCCESS [7.874s]
[INFO] hadoop-yarn-server-web-proxy ...................... SUCCESS [0.185s]
[INFO] hadoop-yarn-server-applicationhistoryservice ...... SUCCESS [2.766s]
[INFO] hadoop-yarn-server-resourcemanager ................ SUCCESS [0.975s]
[INFO] hadoop-yarn-server-tests .......................... SUCCESS [0.260s]
[INFO] hadoop-yarn-client ................................ SUCCESS [0.401s]
[INFO] hadoop-yarn-applications .......................... SUCCESS [0.012s]
[INFO] hadoop-yarn-applications-distributedshell ......... SUCCESS [0.194s]
[INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SUCCESS [0.157s]
[INFO] hadoop-yarn-site .................................. SUCCESS [0.028s]
[INFO] hadoop-yarn-project ............................... SUCCESS [0.030s]
[INFO] hadoop-mapreduce-client ........................... SUCCESS [0.027s]
[INFO] hadoop-mapreduce-client-core ...................... SUCCESS [1.384s]
[INFO] hadoop-mapreduce-client-common .................... SUCCESS [1.167s]
[INFO] hadoop-mapreduce-client-shuffle ................... SUCCESS [0.151s]
[INFO] hadoop-mapreduce-client-app ....................... SUCCESS [0.692s]
[INFO] hadoop-mapreduce-client-hs ........................ SUCCESS [0.521s]
[INFO] hadoop-mapreduce-client-jobclient ................. SUCCESS [9.581s]
[INFO] hadoop-mapreduce-client-hs-plugins ................ SUCCESS [0.105s]
[INFO] Apache Hadoop MapReduce Examples .................. SUCCESS [0.288s]
[INFO] hadoop-mapreduce .................................. SUCCESS [0.031s]
[INFO] Apache Hadoop MapReduce Streaming ................. SUCCESS [2.485s]
[INFO] Apache Hadoop Distributed Copy .................... SUCCESS [14.204s]
[INFO] Apache Hadoop Archives ............................ SUCCESS [0.147s]
[INFO] Apache Hadoop Rumen ............................... SUCCESS [0.283s]
[INFO] Apache Hadoop Gridmix ............................. SUCCESS [0.266s]
[INFO] Apache Hadoop Data Join ........................... SUCCESS [0.109s]
[INFO] Apache Hadoop Extras .............................. SUCCESS [0.173s]
[INFO] Apache Hadoop Pipes ............................... SUCCESS [0.013s]
[INFO] Apache Hadoop OpenStack support ................... SUCCESS [0.292s]
[INFO] Apache Hadoop Client .............................. SUCCESS [0.093s]
[INFO] Apache Hadoop Mini-Cluster ........................ SUCCESS [0.052s]
[INFO] Apache Hadoop Scheduler Load Simulator ............ SUCCESS [1.123s]
[INFO] Apache Hadoop Tools Dist .......................... SUCCESS [0.109s]
[INFO] Apache Hadoop Tools ............................... SUCCESS [0.012s]
[INFO] Apache Hadoop Distribution ........................ SUCCESS [0.038s]
[INFO] ————————————————————————————————————
However, if I run "mvn clean install”, i.e. with Tests, it returned “Failures”
====
Running org.apache.hadoop.fs.viewfs.TestChRootedFs
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.626 sec - in org.apache.hadoop.fs.viewfs.TestChRootedFs
Running org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.099 sec <<< FAILURE! - in org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
testListStatusThrowsExceptionForUnreadableDir(org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem)  Time elapsed: 0.028 sec  <<< FAILURE!
java.lang.AssertionError: Should throw IOException
at org.junit.Assert.fail(Assert.java:93)
at org.apache.hadoop.fs.FSMainOperati