Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleMavenization is pending

Until HIVE-5610 is closed the maven commands below will not work. Afterwards the ant commands should be removed.

Building

How to build all source?

MVN:

Code Block

mvn clean install -DskipTests
cd itests 
mvn clean install -DskipTests

How to generate protbuf code?

MVN:

Code Block

cd ql
mvn clean install -DskipTests -Pprotobuf -Phadoop-1

How to generate thrift code?

MVN:

Code Block

mvn clean install -Pthriftif -Phadoop-1 -DskipTests -Dthrift.home=/usr/local

How to compile ODBC?

MVN:

Code Block

cd odbc
mvn compile -Podbc -Dthrift.home=/usr/local -Dboost.home=/usr/local

How do I publish hive artifacts to my local maven repository?

Code Block

ant package
ant -Dmvn.publish.repo=local maven-build
ant -Dmvn.publish.repo=local maven-publish

MVN:

Code Block

mvn clean install -DskipTests
cd itests 
mvn clean install -DskipTests

Testing

How do I run all of the unit tests?

...

Code Block
ant -Dmodule=ql -Dtestcase=TestCliDriver -Dqfile_regex=partition_wise_fileformat.* test

How do I publish hive artifacts to my local maven repository?

Code Block

ant package
ant -Dmvn.publish.repo=local maven-build
ant -Dmvn.publish.repo=local maven-publish

MVN:

Code Block

mvn clean install -DskipTests
cd itests 
mvn clean install -DskipTests