[
https://issues.apache.org/jira/browse/HADOOP-10530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14237215#comment-14237215
]
Steve Loughran commented on HADOOP-10530:
-----------------------------------------
current status
# All hadoop jenkins builds that thought they were on java7 or 8 were not,
because the {{export JAVA_HOME=${TOOLS_HOME}/java/latest}} as startup was
pointing the jdk @ java 6
# the {{latest1.7}} symlink points to {{jdk1.7.0_25-32}}, which is (a) not the
latest and (b) doesn't build native libs (possibly as it is 32 bit, though
there may be other reasons)
What does appear to produce a build that takes is
{code}
export JAVA_HOME=${TOOLS_HOME}/java/jdk1.7.0_55
{code}
Similarly, to get the java 8 builds to work you need switch to
{code}
export JAVA_HOME=${TOOLS_HOME}/java/jdk1.8.0
{code}
And add {{ -Dmaven.javadoc.skip=true}} to handle the javadocs until we get
[~apurtell]'s patches in.
Finally there's a lot of [[crufty
jenkins|https://builds.apache.org/view/H-L/view/Hadoop/]] builds either
disabled or obsolete (example: trunk-java-7 was still looking at SVN for its
source, as well as building against java 6). I'm not fixing those. Do we
really need (disabled) 0.23 or 2.0.x builds? Or some of the merged branches
like fs-encryption and HA?
A purge of the builds will clean things up...people can fork the current trunk/
or branch-2 when needed.
> Make hadoop trunk build on Java7+ only
> --------------------------------------
>
> Key: HADOOP-10530
> URL: https://issues.apache.org/jira/browse/HADOOP-10530
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build
> Affects Versions: 3.0.0, 2.6.0
> Environment: Java 1.7+
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Blocker
> Attachments: HADOOP-10530-001.patch, HADOOP-10530-002.patch,
> HADOOP-10530-003.patch, HADOOP-10530-004.patch, HADOOP-10530-005.patch,
> HADOOP-10530-debug.000.patch, Screen Shot 2014-09-20 at 18.09.05.png
>
>
> As discussed on hadoop-common, hadoop 3 is envisaged to be Java7+ *only*
> -this JIRA covers switching the build for this
> # maven enforcer plugin to set Java version = {{[1.7)}}
> # compiler to set language to java 1.7
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)