Versions Compared

Key

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

...

  • Hive uses Ivy to download the hadoop-0.19.0 distribution. However once downloaded, it's cached and not downloaded multiple times
  • This will create a distribution directory in build/dist (relative to the source root) from where one can launch Hive. This distribution should only be used to execute queries against hadoop branch 0.19. (Hive is not sensitive to minor revisions of Hadoop versions).

Advanced Mode

  • One can specify a custom distribution directory by using:

...

In this particular example - ~/src/hadoop-19 is a checkout of the hadoop 19 branch that uses 0.19.2-dev as default version and creates a distribution directory in build/hadoop-0.19.2-dev by default.

Run hive from the command line with $HIVE_HOME/bin/hive, where {{$HIVE_HOME is typically build/dist under your git repository top-level directory, thus hive.git/build/dist/bin/hive.

Running Hive locally

From Thejas:  

Code Block
export HIVE_OPTS='-hiveconf mapred.job.tracker=local -hiveconf fs.default.name=file:///tmp \
    -hiveconf hive.metastore.warehouse.dir=file:///tmp/warehouse \
    -hiveconf javax.jdo.option.ConnectionURL=jdbc:derby:;databaseName=/tmp/metastore_db;create=true'

Then you can run 'build/dist/bin/hive' and it will work against your local file system

...