Updated Branches: refs/heads/master 0654affb5 -> f06c0637b
BIGTOP-985: Create Hive JDBC package Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/f06c0637 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/f06c0637 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/f06c0637 Branch: refs/heads/master Commit: f06c0637bdc2c0ec4028aa42ba6c33384b0ef581 Parents: 0654aff Author: Mark Grover <[email protected]> Authored: Wed Jun 5 13:59:22 2013 -0700 Committer: Roman Shaposhnik <[email protected]> Committed: Wed Jun 5 14:46:01 2013 -0700 ---------------------------------------------------------------------- bigtop-packages/src/deb/hive/control | 8 +++++- bigtop-packages/src/deb/hive/rules | 4 +++ bigtop-packages/src/rpm/hive/SPECS/hive.spec | 30 ++++++++++++++++++++- 3 files changed, 40 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/f06c0637/bigtop-packages/src/deb/hive/control ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/hive/control b/bigtop-packages/src/deb/hive/control index 8b643f7..8cddf2a 100644 --- a/bigtop-packages/src/deb/hive/control +++ b/bigtop-packages/src/deb/hive/control @@ -23,7 +23,7 @@ Homepage: http://hive.apache.org/ Package: hive Architecture: all -Depends: adduser, hadoop-client, bigtop-utils (>= 0.6), zookeeper +Depends: adduser, hadoop-client, bigtop-utils (>= 0.6), zookeeper, hive-jdbc Description: Hive is a data warehouse infrastructure built on top of Hadoop Hive is a data warehouse infrastructure built on top of Hadoop that provides tools to enable easy data summarization, adhoc querying and analysis of large @@ -51,3 +51,9 @@ Architecture: all Depends: hive (= ${source:Version}), hbase Description: Provides integration between Apache HBase and Apache Hive This optional package provides integration between Apache HBase and Apache Hive + +Package: hive-jdbc +Architecture: all +Depends: hadoop-client +Description: Provides libraries necessary to connect to Apache Hive via JDBC + This package provides libraries necessary to connect to Apache Hive via JDBC http://git-wip-us.apache.org/repos/asf/bigtop/blob/f06c0637/bigtop-packages/src/deb/hive/rules ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/hive/rules b/bigtop-packages/src/deb/hive/rules index a1d4f1c..07975a3 100755 --- a/bigtop-packages/src/deb/hive/rules +++ b/bigtop-packages/src/deb/hive/rules @@ -46,6 +46,10 @@ override_dh_auto_install: metastore server # We need to get rid of jars that happen to be shipped in other packages rm -f debian/${hive_pkg_name}/usr/lib/hive/lib/hbase-*.jar debian/${hive_pkg_name}/usr/lib/hive/lib/zookeeper-*.jar mkdir -p debian/${hive_pkg_name}-hbase/usr/lib/hive/lib + mkdir -p debian/${hive_pkg_name}-jdbc/usr/lib/hive/lib + for lib in hive-jdbc hive-metastore hive-serde hive-exec libthrift hive-service libfb303 slf4j log4j commons-logging; do \ + mv debian/${hive_pkg_name}/usr/lib/hive/lib/$${lib}-*.jar debian/${hive_pkg_name}-jdbc/usr/lib/hive/lib/; \ + done ln -s /usr/lib/hbase/hbase.jar debian/${hive_pkg_name}-hbase/usr/lib/hive/lib ln -s /usr/lib/zookeeper/zookeeper.jar debian/${hive_pkg_name}/usr/lib/hive/lib # Workaround for BIGTOP-583 http://git-wip-us.apache.org/repos/asf/bigtop/blob/f06c0637/bigtop-packages/src/rpm/hive/SPECS/hive.spec ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/rpm/hive/SPECS/hive.spec b/bigtop-packages/src/rpm/hive/SPECS/hive.spec index 69c7915..021bc5f 100644 --- a/bigtop-packages/src/rpm/hive/SPECS/hive.spec +++ b/bigtop-packages/src/rpm/hive/SPECS/hive.spec @@ -71,7 +71,7 @@ Source7: hive.1 Source8: hive-site.xml Source9: hive-server.svc Source10: hive-metastore.svc -Requires: hadoop-client, bigtop-utils >= 0.6, hbase, zookeeper +Requires: hadoop-client, bigtop-utils >= 0.6, hbase, zookeeper, hive-jdbc Obsoletes: %{name}-webinterface %description @@ -123,7 +123,13 @@ Requires: hbase %description hbase This optional package provides integration between Apache HBase and Apache Hive +%package jdbc +Summary: Provides libraries necessary to connect to Apache Hive via JDBC +Group: Development/Libraries +Requires: hadoop-client +%description jdbc +This package provides libraries necessary to connect to Apache Hive via JDBC %prep %setup -n %{name}-%{hive_base_version} @@ -205,11 +211,33 @@ fi %doc %{doc_hive} %{man_dir}/man1/hive.1.* %exclude %{usr_lib_hive}/lib/hbase.jar +%exclude %{usr_lib_hive}/lib/hive-jdbc-*.jar +%exclude %{usr_lib_hive}/lib/hive-metastore-*.jar +%exclude %{usr_lib_hive}/lib/hive-serde-*.jar +%exclude %{usr_lib_hive}/lib/hive-exec-*.jar +%exclude %{usr_lib_hive}/lib/libthrift-*.jar +%exclude %{usr_lib_hive}/lib/hive-service-*.jar +%exclude %{usr_lib_hive}/lib/libfb303-*.jar +%exclude %{usr_lib_hive}/lib/slf4j-*.jar +%exclude %{usr_lib_hive}/lib/log4j-*.jar +%exclude %{usr_lib_hive}/lib/commons-logging-*.jar %files hbase %defattr(-,root,root,755) %{usr_lib_hive}/lib/hbase.jar +%files jdbc +%defattr(-,root,root,755) +%{usr_lib_hive}/lib/hive-jdbc-*.jar +%{usr_lib_hive}/lib/hive-metastore-*.jar +%{usr_lib_hive}/lib/hive-serde-*.jar +%{usr_lib_hive}/lib/hive-exec-*.jar +%{usr_lib_hive}/lib/libthrift-*.jar +%{usr_lib_hive}/lib/hive-service-*.jar +%{usr_lib_hive}/lib/libfb303-*.jar +%{usr_lib_hive}/lib/slf4j-*.jar +%{usr_lib_hive}/lib/log4j-*.jar +%{usr_lib_hive}/lib/commons-logging-*.jar %define service_macro() \ %files %1 \
