...
Guide for contributors to the metastore on hbase development work. Umbrella JIRA - HIVE-9452
Note |
---|
This work is discontinued and the code is removed in release 3.0.0 (HIVE-17234). |
Table of Contents |
---|
Building
You will need to download the source for Tephra and build it from the develop branch. You need Tephra 0.5.1-SNAPSHOT. You can get Tephra from Cask's github. Switch to the branch develop and doing 'mvn install' will build the version you need.
Setup for running hive against hbase metastore -
...
- Install HBase, preferably HBase 1.1.1 as that’s what is being used for testing.
- Copy following jars into $HBASE_HOME/lib
hive-common-.*.jar
hive-metastore-.*.jar
hive-serde-.*.jar
- Setup HBase, http://hbase.apache.org/book.html#quickstart I run it in stand alone mode, so you have to set a couple of values in hbase-site.xml for this to work.
- Set HADOOP_HOME if you’re not in a cluster where hadoop is already on your path.
- Start HBase: $HBASE_HOME/bin/start-hbase.sh
- Set it up so that HBase jars and conf file are picked up by Hive
- export HIVE_AUX_JARS_PATH=$HBASE_HOME/lib/
- export AUX_CLASSPATH=$HBASE_HOME/conf
- Create the metastore tables in HBase: hive --service hbaseschematool --install
- Configure Hive to use HBase as its metastore, in hive-site.xml:
...