hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giannis Giannakopoulos <gg...@cslab.ece.ntua.gr>
Subject Re: Hive compilation error
Date Thu, 01 Oct 2015 21:39:01 GMT
Yes, I executed this command without success.

On 10/01/2015 08:35 PM, Jimmy Xiang wrote:
> Have you tried "mvn -U clean install -DskipTests -Pdist,hadoop-2"?
> 
> On Thu, Oct 1, 2015 at 12:38 AM, Giannis Giannakopoulos
> <ggian@cslab.ece.ntua.gr <mailto:ggian@cslab.ece.ntua.gr>> wrote:
> 
>     Hello,
> 
>     thank you for your prompt response. I tried to compile with those
>     options (also run mvn clean first) but I keep getting the same output.
>     Any other suggestions?
> 
>     Thanks again,
>     Giannis
> 
> 
>     On 10/01/2015 10:24 AM, Jitendra Yadav wrote:
>     > Try with below options
>     >
>     > mvn clean install -DskipTests -Pdist,hadoop-1  ( on MR1)
>     >
>     > or
>     >
>     > mvn clean install -DskipTests -Pdist,hadoop-2 ( on YARN)
>     >
>     >
>     > Thx
>     >
>     >
>     >
>     >
>     > On Thu, Oct 1, 2015 at 12:14 AM, Giannis Giannakopoulos
>     > <ggian@cslab.ece.ntua.gr <mailto:ggian@cslab.ece.ntua.gr>
>     <mailto:ggian@cslab.ece.ntua.gr <mailto:ggian@cslab.ece.ntua.gr>>>
>     wrote:
>     >
>     > Hi all,
>     >
>     > I am trying to compile hive from source, but I get the following error:
>     > [ERROR] Failed to execute goal
>     > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
>     > (default-compile) on project hive-storage-api: Compilation failure:
>     > Compilation failure:
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/Vec
>     > torizedRowBatch.java:[24,28]
>     > package org.apache.hadoop.io <http://org.apache.hadoop.io>
>     <http://org.apache.hadoop.io> does not
>     > exist
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/Vec
>     > torizedRowBatch.java:[25,28]
>     > package org.apache.hadoop.io <http://org.apache.hadoop.io>
>     <http://org.apache.hadoop.io> does not
>     > exist
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/Vec
>     > torizedRowBatch.java:[34,44]
>     > cannot find symbol
>     > [ERROR] symbol: class Writable
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[25,34]
>     > package org.apache.commons.logging does not exist
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[26,34]
>     > package org.apache.commons.logging does not exist
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[29,28]
>     > package org.apache.hadoop.io <http://org.apache.hadoop.io>
>     <http://org.apache.hadoop.io> does not
>     > exist
>     > [ERROR]
>     > /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[30,28]
>     > package org.apache.hadoop.io <http://org.apache.hadoop.io>
>     <http://org.apache.hadoop.io> does not
>     > exist
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[32,45]
>     > cannot find symbol
>     > [ERROR] symbol: class WritableComparable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[34,24]
>     > cannot find symbol
>     > [ERROR] symbol:   class Log
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/io/sarg/SearchA
>     > rgumentImpl.java:[30,39]
>     > package org.apache.commons.codec.binary does not exist
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/io/sarg/SearchA
>     > rgumentImpl.java:[31,34]
>     > package org.apache.commons.logging does not exist
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/io/sarg/SearchA
>     > rgumentImpl.java:[32,34]
>     > package org.apache.commons.logging does not exist
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/io/sarg/SearchA
>     > rgumentImpl.java:[38,23]
>     > cannot find symbol
>     > [ERROR] symbol:   class Log
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.ql.io.sarg.SearchArgumentImpl
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/Vec
>     > torizedRowBatch.java:[108,34]
>     > cannot find symbol
>     > [ERROR] symbol:   class NullWritable
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/Vec
>     > torizedRowBatch.java:[157,3]
>     > method does not override or implement a method from a supertype
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/Vec
>     > torizedRowBatch.java:[162,3]
>     > method does not override or implement a method from a supertype
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[34,34]
>     > cannot find symbol
>     > [ERROR] symbol:   variable LogFactory
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[96,3]
>     > method does not override or implement a method from a supertype
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[98,13]
>     > cannot find symbol
>     > [ERROR] symbol:   variable WritableUtils
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[99,24]
>     > cannot find symbol
>     > [ERROR] symbol:   variable WritableUtils
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[106,3]
>     > method does not override or implement a method from a supertype
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[108,5]
>     > cannot find symbol
>     > [ERROR] symbol:   variable WritableUtils
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[109,5]
>     > cannot find symbol
>     > [ERROR] symbol:   variable WritableUtils
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDeci
>     > malWritable.java:[113,3]
>     > method does not override or implement a method from a supertype
>     > [ERROR]
>     >
>     /tmp/hive/storage-api/src/java/org/apache/hadoop/hive/ql/io/sarg/SearchA
>     > rgumentImpl.java:[38,33]
>     > cannot find symbol
>     > [ERROR] symbol:   variable LogFactory
>     > [ERROR] location: class
>     > org.apache.hadoop.hive.ql.io.sarg.SearchArgumentImpl
>     > [ERROR] -> [Help 1]
>     > [ERROR]
>     > [ERROR] To see the full stack trace of the errors, re-run Maven
>     with the
>     > -e switch.
>     > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>     > [ERROR]
>     > [ERROR] For more information about the errors and possible solutions,
>     > please read the following articles:
>     > [ERROR] [Help 1]
>     > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>     > [ERROR]
>     > [ERROR] After correcting the problems, you can resume the build with the
>     > command
>     > [ERROR]   mvn <goals> -rf :hive-storage-api
>     >
>     >
>     >
>     > I tried to compile with the following command:
>     >
>     >
>     > mvn clean install
>     >
>     >
>     > Can you provide any details regarding the compilation process? Any
>     > missing dependencies?
>     >
>     >
>     > Thank you in advance.
>     >
>     >
>     > Best,
>     > Giannis
>     >
>     >
>     >
> 
>     --
>     Ioannis Giannakopoulos
>     PhD Candidate, Systems Administrator
>     Computing Systems Laboratory, School of ECE
>     National Technical University of Athens
>     e-mail: ggian@cslab.ece.ntua.gr <mailto:ggian@cslab.ece.ntua.gr>
>     site: http://www.cslab.ece.ntua.gr/~ggian/
>     skype name: giagiannis
>     tel: +302107721544 (int. 200)
> 
> 

-- 
Ioannis Giannakopoulos
PhD Candidate, Systems Administrator
Computing Systems Laboratory, School of ECE
National Technical University of Athens
e-mail: ggian@cslab.ece.ntua.gr
site: http://www.cslab.ece.ntua.gr/~ggian/
skype name: giagiannis
tel: +302107721544 (int. 200)


Mime
View raw message