You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by John Omernik <jo...@omernik.com> on 2015/07/15 20:35:39 UTC

Build Drill Fails with Enforcer Error OpenJDK 1.8

Greetings All. I am trying to build Drill for using with MapR (on Mesos in
Marathon, hence why I am not using the MapR Package). Based on the error,
it looks like it's not parsing the Java version correctly for OpenJDK 1.8
(it sees version 1.8.0_45-internal outside the range of 1.7-1.8).  Thoughts
on this error and how I can proceed?  Thanks!

John


These are the steps I am taking:

First my java version:

java -version

openjdk version "1.8.0_45-internal"

OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)

OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

git clone https://github.com/apache/drill.git

cd drill

mvn -Pmapr clean package



The error I am getting:

[INFO]

[INFO] --- maven-enforcer-plugin:1.3.1:enforce
(validate_java_and_maven_version) @ drill-root ---

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
failed with message:

Detected JDK Version: 1.8.0-45 is not in the allowed range [1.7,1.8).

[INFO]
------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] Apache Drill Root POM ............................. FAILURE [ 32.370
s]

Re: Build Drill Fails with Enforcer Error OpenJDK 1.8

Posted by John Omernik <jo...@omernik.com>.
Ok, so I downloaded Oracle Java and tried to compile and this was my
answer:

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
failed with message:

Detected JDK Version: 1.8.0-51 is not in the allowed range [1.7,1.8).



Basically the same issue as the OpenJDK one.  Any thoughts on addressing
this?  Thanks!




On Wed, Jul 15, 2015 at 1:38 PM, John Omernik <jo...@omernik.com> wrote:

> So I found this page:
> http://drill.apache.org/docs/compiling-drill-from-source/
>
> Is Oracle JDK really a requirement to build Drill?  That seems odd.
>
> On Wed, Jul 15, 2015 at 1:35 PM, John Omernik <jo...@omernik.com> wrote:
>
>> Greetings All. I am trying to build Drill for using with MapR (on Mesos
>> in Marathon, hence why I am not using the MapR Package). Based on the
>> error, it looks like it's not parsing the Java version correctly for
>> OpenJDK 1.8 (it sees version 1.8.0_45-internal outside the range of
>> 1.7-1.8).  Thoughts on this error and how I can proceed?  Thanks!
>>
>> John
>>
>>
>> These are the steps I am taking:
>>
>> First my java version:
>>
>> java -version
>>
>> openjdk version "1.8.0_45-internal"
>>
>> OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
>>
>> OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
>>
>> git clone https://github.com/apache/drill.git
>>
>> cd drill
>>
>> mvn -Pmapr clean package
>>
>>
>>
>> The error I am getting:
>>
>> [INFO]
>>
>> [INFO] --- maven-enforcer-plugin:1.3.1:enforce
>> (validate_java_and_maven_version) @ drill-root ---
>>
>> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
>> failed with message:
>>
>> Detected JDK Version: 1.8.0-45 is not in the allowed range [1.7,1.8).
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Reactor Summary:
>>
>> [INFO]
>>
>> [INFO] Apache Drill Root POM ............................. FAILURE [
>> 32.370 s]
>>
>
>

Re: Build Drill Fails with Enforcer Error OpenJDK 1.8

Posted by John Omernik <jo...@omernik.com>.
I see.  The documentation isn't clear on that (Oracle vs openjdk) I did
find that same part in the pom.xml as your link, changed 1.8 to 1.9 and
it's compiling. Thanks for the update.

<requireJavaVersion>

                  <version>[1.7,1.9)</version>

                </requireJavaVersion>


(it was [1.7,1.8))  i

On Wed, Jul 15, 2015 at 1:55 PM, Jacques Nadeau <ja...@dremio.com> wrote:

> OpenJDK is fine. However, Drill currently only comes out of the box
> supporting builds on Java7.  There are 1 or 2 failing test cases in the
> build that fail on Java8 (there is a JIRA open to address).
>
> Many people use it with Java 8 fine.  If you remove the three lines here
> [1] and run your build with -DskipTests, you should be able to get past
> this.
>
> [1] https://github.com/apache/drill/blob/master/pom.xml#L282
>
> On Wed, Jul 15, 2015 at 11:38 AM, John Omernik <jo...@omernik.com> wrote:
>
> > So I found this page:
> > http://drill.apache.org/docs/compiling-drill-from-source/
> >
> > Is Oracle JDK really a requirement to build Drill?  That seems odd.
> >
> > On Wed, Jul 15, 2015 at 1:35 PM, John Omernik <jo...@omernik.com> wrote:
> >
> > > Greetings All. I am trying to build Drill for using with MapR (on Mesos
> > in
> > > Marathon, hence why I am not using the MapR Package). Based on the
> error,
> > > it looks like it's not parsing the Java version correctly for OpenJDK
> 1.8
> > > (it sees version 1.8.0_45-internal outside the range of 1.7-1.8).
> > Thoughts
> > > on this error and how I can proceed?  Thanks!
> > >
> > > John
> > >
> > >
> > > These are the steps I am taking:
> > >
> > > First my java version:
> > >
> > > java -version
> > >
> > > openjdk version "1.8.0_45-internal"
> > >
> > > OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
> > >
> > > OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
> > >
> > > git clone https://github.com/apache/drill.git
> > >
> > > cd drill
> > >
> > > mvn -Pmapr clean package
> > >
> > >
> > >
> > > The error I am getting:
> > >
> > > [INFO]
> > >
> > > [INFO] --- maven-enforcer-plugin:1.3.1:enforce
> > > (validate_java_and_maven_version) @ drill-root ---
> > >
> > > [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
> > > failed with message:
> > >
> > > Detected JDK Version: 1.8.0-45 is not in the allowed range [1.7,1.8).
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] Reactor Summary:
> > >
> > > [INFO]
> > >
> > > [INFO] Apache Drill Root POM ............................. FAILURE [
> > > 32.370 s]
> > >
> >
>

Re: Build Drill Fails with Enforcer Error OpenJDK 1.8

Posted by Jacques Nadeau <ja...@dremio.com>.
OpenJDK is fine. However, Drill currently only comes out of the box
supporting builds on Java7.  There are 1 or 2 failing test cases in the
build that fail on Java8 (there is a JIRA open to address).

Many people use it with Java 8 fine.  If you remove the three lines here
[1] and run your build with -DskipTests, you should be able to get past
this.

[1] https://github.com/apache/drill/blob/master/pom.xml#L282

On Wed, Jul 15, 2015 at 11:38 AM, John Omernik <jo...@omernik.com> wrote:

> So I found this page:
> http://drill.apache.org/docs/compiling-drill-from-source/
>
> Is Oracle JDK really a requirement to build Drill?  That seems odd.
>
> On Wed, Jul 15, 2015 at 1:35 PM, John Omernik <jo...@omernik.com> wrote:
>
> > Greetings All. I am trying to build Drill for using with MapR (on Mesos
> in
> > Marathon, hence why I am not using the MapR Package). Based on the error,
> > it looks like it's not parsing the Java version correctly for OpenJDK 1.8
> > (it sees version 1.8.0_45-internal outside the range of 1.7-1.8).
> Thoughts
> > on this error and how I can proceed?  Thanks!
> >
> > John
> >
> >
> > These are the steps I am taking:
> >
> > First my java version:
> >
> > java -version
> >
> > openjdk version "1.8.0_45-internal"
> >
> > OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
> >
> > OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
> >
> > git clone https://github.com/apache/drill.git
> >
> > cd drill
> >
> > mvn -Pmapr clean package
> >
> >
> >
> > The error I am getting:
> >
> > [INFO]
> >
> > [INFO] --- maven-enforcer-plugin:1.3.1:enforce
> > (validate_java_and_maven_version) @ drill-root ---
> >
> > [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
> > failed with message:
> >
> > Detected JDK Version: 1.8.0-45 is not in the allowed range [1.7,1.8).
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Reactor Summary:
> >
> > [INFO]
> >
> > [INFO] Apache Drill Root POM ............................. FAILURE [
> > 32.370 s]
> >
>

Re: Build Drill Fails with Enforcer Error OpenJDK 1.8

Posted by John Omernik <jo...@omernik.com>.
So I found this page:
http://drill.apache.org/docs/compiling-drill-from-source/

Is Oracle JDK really a requirement to build Drill?  That seems odd.

On Wed, Jul 15, 2015 at 1:35 PM, John Omernik <jo...@omernik.com> wrote:

> Greetings All. I am trying to build Drill for using with MapR (on Mesos in
> Marathon, hence why I am not using the MapR Package). Based on the error,
> it looks like it's not parsing the Java version correctly for OpenJDK 1.8
> (it sees version 1.8.0_45-internal outside the range of 1.7-1.8).  Thoughts
> on this error and how I can proceed?  Thanks!
>
> John
>
>
> These are the steps I am taking:
>
> First my java version:
>
> java -version
>
> openjdk version "1.8.0_45-internal"
>
> OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
>
> OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
>
> git clone https://github.com/apache/drill.git
>
> cd drill
>
> mvn -Pmapr clean package
>
>
>
> The error I am getting:
>
> [INFO]
>
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce
> (validate_java_and_maven_version) @ drill-root ---
>
> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
> failed with message:
>
> Detected JDK Version: 1.8.0-45 is not in the allowed range [1.7,1.8).
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Reactor Summary:
>
> [INFO]
>
> [INFO] Apache Drill Root POM ............................. FAILURE [
> 32.370 s]
>