Suppose we configure maven-compiler-plugin with <source> set to 1.7 but <target> set to 1.8 in trunk. I believe this would have the effect of generating JDK 8 bytecode, but enforcing that our code sticks to JDK 7 compatibility at compile time. Does that still satisfy requirements for HADOOP-11858?
I'd prefer to avoid executing duplicate builds for different JDK versions. Pre-commit already takes a long time, and I suspect doubling the amount of builds will make us starved for executors in Jenkins. Chris Nauroth Hortonworks http://hortonworks.com/ On 4/21/15, 8:38 PM, "Sean Busbey" <bus...@cloudera.com> wrote: >A few options: > >* Only change the builds for master to use jdk8 >* build with both jdk7 and jdk8 by copying jobs >* build with both jdk7 and jdk8 using a jenkins matrix build > >Robert, if you'd like help with any of these please send me a ping >off-list. > >On Tue, Apr 21, 2015 at 8:19 PM, Vinod Kumar Vavilapalli < >vino...@hortonworks.com> wrote: > >> We don't want JDK 8 only code going into branch-2 line. Moving Jenkins >>to >> 1.8 right-away will shield such code, how do we address that? >> >> Thanks, >> +Vinod >> >> On Apr 21, 2015, at 5:54 PM, Robert Kanter <rkan...@cloudera.com> wrote: >> >> > Sure, I'll try to change the Jenkins builds to 1.8 first. >> > >> > On Tue, Apr 21, 2015 at 3:31 PM, Andrew Wang >><andrew.w...@cloudera.com> >> > wrote: >> > >> >> Hey Robert, >> >> >> >> As a first step, could we try switching all our precommit and nightly >> >> builds over to use 1.8? This is a prerequisite for HADOOP-11858, and >> safe >> >> to do in any case since it'll still target 1.7. >> >> >> >> I'll note that HADOOP-10530 details the pain Steve went through >> switching >> >> us to JDK7. Might be some lessons learned about how to do this >> transition >> >> more smoothly. >> >> >> >> Thanks, >> >> Andrew >> >> >> >> On Tue, Apr 21, 2015 at 3:15 PM, Robert Kanter <rkan...@cloudera.com> >> >> wrote: >> >> >> >>> + yarn-dev, hdfs-dev, mapred-dev >> >>> >> >>> On Tue, Apr 21, 2015 at 3:14 PM, Robert Kanter >><rkan...@cloudera.com> >> >>> wrote: >> >>> >> >>>> Hi all, >> >>>> >> >>>> Moving forward on some of the discussions on Hadoop 3, I've created >> >>>> HADOOP-11858 to set the minimum version of Hadoop 3 to JDK 8. I >>just >> >>>> wanted to let everyone know in case there's some reason we >>shouldn't >> go >> >>>> ahead with this. >> >>>> >> >>>> thanks >> >>>> - Robert >> >>>> >> >>> >> >> >> >> > > >-- >Sean