[ 
https://issues.apache.org/jira/browse/HADOOP-12300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660500#comment-14660500
 ] 

Peter D Kirchner commented on HADOOP-12300:
-------------------------------------------

I've investigated a bit more.
Build-wise with -DskipTests, the problem files are 
hadoop-2.6.0-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/test/java/org/apache/hadoop/registry/secure/TestSecureLogins.java
./hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java
because they import java-vendor-specific package names (the former, 
com.sun.security.auth.module.Krb5LoginModule; the latter, several symbols from 
sun.security.x509. )
Substituting com.ibm. for both sun. and com.sun. allows my build to complete 
(with the IBM JDK).
The hadoop code has several runtime checks for the JRE, so it looks as if 
others are changing the imports outside of the build process to get around the 
lack of conditional compilation.
Should the two files causing this build failure be generated (earlier in the 
build) with the vendor-specific imports?

> BUILDING.txt instructions for skipping tests incomplete/obsolete, build can 
> fail.
> ---------------------------------------------------------------------------------
>
>                 Key: HADOOP-12300
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12300
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.5.0, 2.6.0
>         Environment: maven 3.2.3 +
>            Reporter: Peter D Kirchner
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Instructions currently online, and within the hadoop source tree, appear to 
> be incomplete/obsolete for building the source.  I checked 2.5.0 and 2.6.0 .
> with "mvn install -DskipTests" my build fails on multiple hadoop src/test 
> sub-directories with:
>    Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile 
> (default-testCompile)...
> This compile failure may be related to my jdk/jre, but why is my build ("mvn 
> install -DskipTests") compiling these tests?
> The pom.xml files are using the maven-compiler-plugin to compile some of the 
> tests instead of surefire.  The maven-compiler-plugin is unaffected by 
> -DskipTests and per maven documentation requires -Dmaven.test.skip instead, 
> which the surefire plugin also obeys.
> Building with
> mvn install -Dmaven.test.skip
> completes in my environment.
> I suggest a "major" rating because of the impact on users of the source 
> tarballs.  IMO the build instructions in the tarball and online (e.g. 
> https://wiki.apache.org/hadoop/EclipseEnvironment ) should work reliably.
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to