If you are reading this post I assume you are interested in getting started with hive on your macbook and already have hadoop installed. For details on installing hadoop please refer to my post here
http://springandgrailsmusings.blogspot.com/2012/12/install-hadoop-111-on-macbook-pro-os-x.html
Again howbrew provides an easy way to get hive on your mac.
Run this from your mac terminal:
> brew install hive
You will see brew installs hive on your mac and you will see output similar to the one below:
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hive/hive-0.9.0/hive-0.9.0-bin.tar.gz
==> Best Mirror http://apache.claz.org/hive/hive-0.9.0/hive-0.9.0-bin.tar.gz
######################################################################## 100.0%
==> Caveats
Hadoop must be in your path for hive executable to work.
After installation, set $HIVE_HOME in your profile:
export HIVE_HOME=/usr/local/Cellar/hive/0.9.0/libexec
You may need to set JAVA_HOME:
export JAVA_HOME="$(/usr/libexec/java_home)"
==> Summary
/usr/local/Cellar/hive/0.9.0: 276 files, 25M, built in 13 seconds
Export HIVE_HOME and JAVA_HOME as prompted from your terminal
export HIVE_HOME=/usr/local/Cellar/hive/0.9.0/libexec
export JAVA_HOME="$(/usr/libexec/java_home)"
Now you can start hive as follows:
/usr/local/Cellar/hive/0.9.0/bin/hive
You should be all set at this point to work with hive.
Hope this helps.
No comments:
Post a Comment