You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2013/05/03 00:52:04 UTC

[4/7] git commit: BIGTOP-756. Provide the thrift API interface file in the HBase packages

BIGTOP-756. Provide the thrift API interface file in the HBase packages


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/bc114699
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/bc114699
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/bc114699

Branch: refs/heads/master
Commit: bc114699cc6aec1f747d68766959c37dc40c7282
Parents: 46fde11
Author: Anatoli Fomenko <fa...@apache.org>
Authored: Wed May 1 19:07:03 2013 -0700
Committer: Roman Shaposhnik <rv...@cloudera.com>
Committed: Thu May 2 10:39:09 2013 -0700

----------------------------------------------------------------------
 bigtop-packages/src/common/hbase/install_hbase.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/bc114699/bigtop-packages/src/common/hbase/install_hbase.sh
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/hbase/install_hbase.sh b/bigtop-packages/src/common/hbase/install_hbase.sh
index 3df001e..f23cd27 100755
--- a/bigtop-packages/src/common/hbase/install_hbase.sh
+++ b/bigtop-packages/src/common/hbase/install_hbase.sh
@@ -102,6 +102,7 @@ LIB_DIR=${LIB_DIR:-/usr/lib/hbase}
 BIN_DIR=${BIN_DIR:-/usr/lib/hbase/bin}
 ETC_DIR=${ETC_DIR:-/etc/hbase}
 CONF_DIR=${CONF_DIR:-${ETC_DIR}/conf.dist}
+THRIFT_DIR=${THRIFT_DIR:-${LIB_DIR}/include/thrift}
 
 install -d -m 0755 $PREFIX/$LIB_DIR
 install -d -m 0755 $PREFIX/$LIB_DIR/lib
@@ -109,6 +110,7 @@ install -d -m 0755 $PREFIX/$DOC_DIR
 install -d -m 0755 $PREFIX/$BIN_DIR
 install -d -m 0755 $PREFIX/$ETC_DIR
 install -d -m 0755 $PREFIX/$MAN_DIR
+install -d -m 0755 $PREFIX/$THRIFT_DIR
 
 cp -ra $BUILD_DIR/lib/* ${PREFIX}/${LIB_DIR}/lib/
 cp $BUILD_DIR/hbase*.jar $PREFIX/$LIB_DIR
@@ -125,6 +127,9 @@ for file in rolling-restart.sh graceful_stop.sh local-regionservers.sh \
   rm -f $PREFIX/$BIN_DIR/$file
 done
 
+cp $BUILD_DIR/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift $PREFIX/$THRIFT_DIR/hbase1.thrift
+cp $BUILD_DIR/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift $PREFIX/$THRIFT_DIR/hbase2.thrift
+
 ln -s $ETC_DIR/conf $PREFIX/$LIB_DIR/conf
 
 # Make a symlink of hbase.jar to hbase-version.jar