Hello!

I am trying to build hive from trunk following instructions from 
https://cwiki.apache.org/confluence/display/Hive/GettingStarted#GettingStarted-BuildingHivefromSource
 :
$ svn co http://svn.apache.org/repos/asf/hive/trunk hive
$ cd hive
$ mvn clean install -Phadoop-2,dist

I end up with the following error:

[INFO] Hive Serde ........................................ SUCCESS [4.846s]
[INFO] Hive Metastore .................................... FAILURE [9.184s]
[INFO] Hive Ant Utilities ................................ SKIPPED
[INFO] Spark Remote Client ............................... SKIPPED
[INFO] Hive Query Language ............................... SKIPPED
[INFO] Hive Service ...................................... SKIPPED
[INFO] Hive Accumulo Handler ............................. SKIPPED
[INFO] Hive JDBC ......................................... SKIPPED
[INFO] Hive Beeline ...................................... SKIPPED
[INFO] Hive CLI .......................................... SKIPPED
[INFO] Hive Contrib ...................................... SKIPPED
[INFO] Hive HBase Handler ................................ SKIPPED
[INFO] Hive HCatalog ..................................... SKIPPED
[INFO] Hive HCatalog Core ................................ SKIPPED
[INFO] Hive HCatalog Pig Adapter ......................... SKIPPED
[INFO] Hive HCatalog Server Extensions ................... SKIPPED
[INFO] Hive HCatalog Webhcat Java Client ................. SKIPPED
[INFO] Hive HCatalog Webhcat ............................. SKIPPED
[INFO] Hive HCatalog Streaming ........................... SKIPPED
[INFO] Hive HWI .......................................... SKIPPED
[INFO] Hive ODBC ......................................... SKIPPED
[INFO] Hive Shims Aggregator ............................. SKIPPED
[INFO] Hive TestUtils .................................... SKIPPED
[INFO] Hive Packaging .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.806s
[INFO] Finished at: Thu Jan 22 18:11:01 MSK 2015
[INFO] Final Memory: 87M/2010M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "native" could not be activated because it does
not exist.
[ERROR] Failed to execute goal org.datanucleus:datanucleus-maven-plugin:3.3.0-re
lease:enhance (default) on project hive-metastore: Error executing DataNucleus t
ool org.datanucleus.enhancer.DataNucleusEnhancer: InvocationTargetException: Plu
gin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multi
ple JAR versions of the same plugin in the classpath. The URL "file:/opt/home/mi
tya/.m2/repository/org/datanucleus/datanucleus-core/3.2.10/datanucleus-core-3.2.
10.jar" is already registered, and you are trying to register an identical plugi
n located at URL "file:/home/mitya/.m2/repository/org/datanucleus/datanucleus-co
re/3.2.10/datanucleus-core-3.2.10.jar." -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hive-metastore

What am I doing wrong?

Thanks!


openjdk version "1.7.0_65"
OpenJDK Runtime Environment (build 1.7.0_65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 
17:51:28+0400)
Maven home: /usr/local/share/java/maven3
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: /usr/local/openjdk7/jre
Default locale: en, platform encoding: UTF-8
OS name: "freebsd", version: "10.1-stable", arch: "amd64", family: "unix"

Reply via email to