[ https://issues.apache.org/jira/browse/HADOOP-11227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
milq resolved HADOOP-11227. --------------------------- Resolution: Fixed Assignee: milq i was using jdks 1.6 , using jdk 1.7 will solve the issue > error when building hadoop on windows > --------------------------------------- > > Key: HADOOP-11227 > URL: https://issues.apache.org/jira/browse/HADOOP-11227 > Project: Hadoop Common > Issue Type: Bug > Components: build > Affects Versions: 2.3.0 > Reporter: milq > Assignee: milq > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building hadoop-mapreduce-client-app 2.2.0 > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ > hadoop-mapreduce-clie > nt-app --- > [INFO] Executing tasks > main: > [INFO] Executed tasks > [INFO] > [INFO] --- maven-resources-plugin:2.2:resources (default-resources) @ > hadoop-map > reduce-client-app --- > [INFO] Using default encoding to copy filtered resources. > [INFO] > [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ > hadoop-mapred > uce-client-app --- > [INFO] Nothing to compile - all classes are up to date > [INFO] > [INFO] --- maven-resources-plugin:2.2:testResources (default-testResources) @ > ha > doop-mapreduce-client-app --- > [INFO] Using default encoding to copy filtered resources. > [INFO] > [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ > hadoo > p-mapreduce-client-app --- > [INFO] Compiling 29 source files to > D:\hdfs\hadoop-mapreduce-project\hadoop-mapr > educe-client\hadoop-mapreduce-client-app\target\test-classes > [INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] > D:\hdfs\hadoop-mapreduce-project\hadoop-mapreduce-client\hadoop-mapreduc > e-client-app\src\test\java\org\apache\hadoop\mapreduce\v2\app\TestRecovery.java: > [1491,60] incomparable types: java.lang.Enum<capture#698 of ?> and > org.apache.ha > doop.mapreduce.JobCounter > [ERROR] > D:\hdfs\hadoop-mapreduce-project\hadoop-mapreduce-client\hadoop-mapreduc > e-client-app\src\test\java\org\apache\hadoop\mapreduce\v2\app\TestRecovery.java: > [1495,67] incomparable types: java.lang.Enum<capture#215 of ?> and > org.apache.ha > doop.mapreduce.JobCounter > [INFO] 2 errors > [INFO] ------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Hadoop Main ................................ SUCCESS [7.601s] > [INFO] Apache Hadoop Project POM ......................... SUCCESS [7.254s] > [INFO] Apache Hadoop Annotations ......................... SUCCESS [7.177s] > [INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.604s] > [INFO] Apache Hadoop Project Dist POM .................... SUCCESS [6.864s] > [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [8.371s] > [INFO] Apache Hadoop Auth ................................ SUCCESS [5.966s] > [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [4.492s] > [INFO] Apache Hadoop Common .............................. SUCCESS [7:26.231s] > [INFO] Apache Hadoop NFS ................................. SUCCESS [20.858s] > [INFO] Apache Hadoop Common Project ...................... SUCCESS [0.093s] > [INFO] Apache Hadoop HDFS ................................ SUCCESS [8:10.985s] > [INFO] Apache Hadoop HttpFS .............................. SUCCESS [1:00.932s] > [INFO] Apache Hadoop HDFS BookKeeper Journal ............. SUCCESS [17.207s] > [INFO] Apache Hadoop HDFS-NFS ............................ SUCCESS [12.950s] > [INFO] Apache Hadoop HDFS Project ........................ SUCCESS [0.104s] > [INFO] hadoop-yarn ....................................... SUCCESS [1.943s] > [INFO] hadoop-yarn-api ................................... SUCCESS [2:39.214s] > [INFO] hadoop-yarn-common ................................ SUCCESS [1:15.391s] > [INFO] hadoop-yarn-server ................................ SUCCESS [0.278s] > [INFO] hadoop-yarn-server-common ......................... SUCCESS [14.293s] > [INFO] hadoop-yarn-server-nodemanager .................... SUCCESS [25.848s] > [INFO] hadoop-yarn-server-web-proxy ...................... SUCCESS [5.866s] > [INFO] hadoop-yarn-server-resourcemanager ................ SUCCESS [39.821s] > [INFO] hadoop-yarn-server-tests .......................... SUCCESS [0.645s] > [INFO] hadoop-yarn-client ................................ SUCCESS [6.714s] > [INFO] hadoop-yarn-applications .......................... SUCCESS [0.454s] > [INFO] hadoop-yarn-applications-distributedshell ......... SUCCESS [3.555s] > [INFO] hadoop-mapreduce-client ........................... SUCCESS [0.292s] > [INFO] hadoop-mapreduce-client-core ...................... SUCCESS [1:05.441s] > [INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SUCCESS [3.811s] > [INFO] hadoop-yarn-site .................................. SUCCESS [0.400s] > [INFO] hadoop-yarn-project ............................... SUCCESS [13.218s] > [INFO] hadoop-mapreduce-client-common .................... SUCCESS [40.962s] > [INFO] hadoop-mapreduce-client-shuffle ................... SUCCESS [4.084s] > [INFO] hadoop-mapreduce-client-app ....................... FAILURE [6.931s] > [INFO] hadoop-mapreduce-client-hs ........................ SKIPPED > [INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED > [INFO] hadoop-mapreduce-client-hs-plugins ................ SKIPPED > [INFO] Apache Hadoop MapReduce Examples .................. SKIPPED > [INFO] hadoop-mapreduce .................................. SKIPPED > [INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED > [INFO] Apache Hadoop Distributed Copy .................... SKIPPED > [INFO] Apache Hadoop Archives ............................ SKIPPED > [INFO] Apache Hadoop Rumen ............................... SKIPPED > [INFO] Apache Hadoop Gridmix ............................. SKIPPED > [INFO] Apache Hadoop Data Join ........................... SKIPPED > [INFO] Apache Hadoop Extras .............................. SKIPPED > [INFO] Apache Hadoop Pipes ............................... SKIPPED > [INFO] Apache Hadoop Tools Dist .......................... SKIPPED > [INFO] Apache Hadoop Tools ............................... SKIPPED > [INFO] Apache Hadoop Distribution ........................ SKIPPED > [INFO] Apache Hadoop Client .............................. SKIPPED > [INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 26:09.367s > [INFO] Finished at: Fri Oct 24 17:51:30 IRST 2014 > [INFO] Final Memory: 50M/136M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2. > 5.1:testCompile (default-testCompile) on project hadoop-mapreduce-client-app: > Co > mpilation failure: Compilation failure: > [ERROR] > D:\hdfs\hadoop-mapreduce-project\hadoop-mapreduce-client\hadoop-mapreduc > e-client-app\src\test\java\org\apache\hadoop\mapreduce\v2\app\TestRecovery.java: > [1491,60] incomparable types: java.lang.Enum<capture#698 of ?> and > org.apache.ha > doop.mapreduce.JobCounter > [ERROR] > D:\hdfs\hadoop-mapreduce-project\hadoop-mapreduce-client\hadoop-mapreduc > e-client-app\src\test\java\org\apache\hadoop\mapreduce\v2\app\TestRecovery.java: > [1495,67] incomparable types: java.lang.Enum<capture#215 of ?> and > org.apache.ha > doop.mapreduce.JobCounter > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > swit > ch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > rea > d the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc > eption > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn <goals> -rf :hadoop-mapreduce-client-app > D:\hdfs> -- This message was sent by Atlassian JIRA (v6.3.4#6332)