Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> Issue while building


Copy link to this message
-
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*.*
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB