Ran into this same thing on EC2 (Centos) and OpenJDK.

If I recall correctly, you need to explicitly set the JAVA_HOME and not let 
drill determine the JAVA_HOME. 

This happens only with OpenJDK, and it does not happen with Oracle JRE.

Cheers,
-Harri

-----Original Message-----
From: Michael Hausenblas [mailto:[email protected]] 
Sent: 10. lokakuuta 2013 12:57
To: [email protected]
Subject: Re: Issue while building


> *Java version:*
> 
> [shrchaudhari@localhost incubator-drill]$ sudo alternatives --config 
> java
> 
> There are 2 programs which provide 'java'.
> 
>  Selection    Command
> -----------------------------------------------
> *+ 1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
>   2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

I'd suspect the wrong Java version is used (Drill needs Java 7).

Can you paste the output of the following please?

$ java -version



Cheers,
                Michael

--
Michael Hausenblas
Ireland, Europe
http://mhausenblas.info/

On 10 Oct 2013, at 10:50, shrinidhi chaudhari <[email protected]> 
wrote:

> Hi,
> I am setting up Drill development env but got stuck while building 
> through maven.
> *
> *
> *
> *
> *I get the following error while doing a  *$ mvn clean install
> 
> Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project drill-protocol: Fatal error compiling: 
> invalid target release: 1.7 -> [Help 1]
> 
> *Java version:*
> 
> [shrchaudhari@localhost incubator-drill]$ sudo alternatives --config 
> java
> 
> There are 2 programs which provide 'java'.
> 
>  Selection    Command
> -----------------------------------------------
> *+ 1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
>   2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
> 
> 
> 
> *Protobuf version:*
> 
> [shrchaudhari@localhost incubator-drill]$ protoc --version libprotoc 
> 2.5.0
> 
> 
> --
> Shrinidhi Chaudhari*.*

Reply via email to