You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by bl...@apache.org on 2014/01/23 06:23:09 UTC

git commit: TAJO-526: HCatalogStore Documentation. (jaehwa)

Updated Branches:
  refs/heads/master f3f4b0453 -> 0214f0190


TAJO-526: HCatalogStore Documentation. (jaehwa)


Project: http://git-wip-us.apache.org/repos/asf/incubator-tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tajo/commit/0214f019
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tajo/tree/0214f019
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tajo/diff/0214f019

Branch: refs/heads/master
Commit: 0214f0190940c43b77693f97216a938031372380
Parents: f3f4b04
Author: blrunner <jh...@gruter.com>
Authored: Thu Jan 23 14:22:47 2014 +0900
Committer: blrunner <jh...@gruter.com>
Committed: Thu Jan 23 14:22:47 2014 +0900

----------------------------------------------------------------------
 CHANGES.txt                                     |  4 ++-
 .../src/site/markdown/tajo-0.8.0-doc.md         | 36 ++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/0214f019/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 91e7a64..cb0497e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,7 +4,7 @@ Release 0.8.0 - unreleased
 
   NEW FEATURES
 
-	TAJO-449: Implement extract() function. (Keuntae Park)
+    TAJO-449: Implement extract() function. (Keuntae Park)
 
     TAJO-482: Implements listing functions and describing a specified
     function. (hyoungjunkim via hyunsik)
@@ -361,6 +361,8 @@ Release 0.8.0 - unreleased
 
   TASKS
 
+    TAJO-526: HCatalogStore Documentation. (jaehwa)
+
     TAJO-535: Fix warnings in tajo-rpc. (jinho)
 
     TAJO-531: Fix warnings in tajo-client. (jinho)

http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/0214f019/tajo-project/src/site/markdown/tajo-0.8.0-doc.md
----------------------------------------------------------------------
diff --git a/tajo-project/src/site/markdown/tajo-0.8.0-doc.md b/tajo-project/src/site/markdown/tajo-0.8.0-doc.md
index 86fcad1..1989e7b 100644
--- a/tajo-project/src/site/markdown/tajo-0.8.0-doc.md
+++ b/tajo-project/src/site/markdown/tajo-0.8.0-doc.md
@@ -413,6 +413,42 @@ If you want to customize the catalog service, copy $TAJO_HOME/conf/catalog-site.
     * tajo.catalog.store.DerbyStore - this storage class uses Apache Derby.
     * tajo.catalog.store.MySQLStore - this storage class uses MySQL.
     * tajo.catalog.store.MemStore - this is the in-memory storage. It is only used in unit tests to shorten the duration of unit tests.
+    * tajo.catalog.store.HCatalogStore - this storage class uses HiveMetaStore.
+
+### HCatalogStore Configuration
+
+Tajo support HCatalogStore to integrate with hive. If you want to use HCatalogStore, you just do as follows.
+
+First, you must compile source code and get a binary archive as follows:
+
+```
+$ git clone https://git-wip-us.apache.org/repos/asf/incubator-tajo.git tajo
+$ mvn clean package -DskipTests -Pdist -Dtar -Phcatalog-0.1x.0
+$ ls tajo-dist/target/tajo-0.8.0-SNAPSHOT.tar.gz
+```
+
+Tajo support to build based on hive 0.11.0 and hive 0.12.0. If you use hive 0.11.0, you have to set -Phcatalog-0.11.0. And if you use hive 0.12.0, you have to set -Phcatalog-0.12.0.
+
+Second, you must set your hive home directory to HIVE_HOME variable in conf/tajo-env.sh with it as follows:
+
+```
+export HIVE_HOME=/path/to/your/hive/directory
+```
+
+Third, if you need to use jdbc to connect HiveMetaStore, you have to prepare mysql jdbc driver on host which can be ran TajoMaster. If you prepare it, you should set jdbc driver file path to HIVE_JDBC_DRIVER_DIR variable in conf/tajo-env.sh with it  as follows:
+
+```
+export HIVE_JDBC_DRIVER_DIR==/path/to/your/mysql_jdbc_driver/mysql-connector-java-x.x.x-bin.jar
+```
+
+Lastly, you should add the following config to *conf/catalog-site.xml* :
+
+```
+  <property>
+    <name>tajo.catalog.store.class</name>
+    <value>org.apache.tajo.catalog.store.HCatalogStore</value>
+  </property>
+```
 
 ## <a name="DefaultPorts"></a>RPC/Http Service Configuration and Default Addresses