Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Move the MAVEN_OPTS comment out of legacy section.

...

You might have to set the following Maven options on certain systems to get build working. Check out the suggested value for MAVEN_OPTS under the testing section (How do I run all of the unit tests?): Set MAVEN_OPTS to "-Xmx2g -XX:MaxPermSize=256M".

How to build all source?

...

Code Block
$ mkdir workspace
$ cd workspace
$ git clone https://github.com/apache/hive.git
$ cd hive
$ export MAVEN_OPTS="-Xmx512m"
$ mvn clean install -DskipTests -Phadoop-2
$ mvn eclipse:clean
$ mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs -Phadoop-2
$ cd itests
$ mvn clean install -DskipTests -Phadoop-2
$ mvn eclipse:clean
$ mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs -Phadoop-2

...

Info
titleLegacy information for the Ant build

Make sure that your JAVA_HOME is appropriately set (some tests need this), and set ANT_OPTS to increase the size allocated to the Permanent Generation as per the following:

Code Block
export ANT_OPTS="-XX:MaxPermSize=512m"
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=256M"

Then, for a clean build, run

Code Block
ant clean package test

Note that running ant test will not work; ant package does some setup work that is required for the testcases to run successfully.

...