Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: general
    • Labels:
      None

      Description

      Turns out there's core functionality in Hive that depends on those two.

        Activity

        Hide
        Roman Shaposhnik added a comment -

        Here's a patch inline

        diff --git a/bigtop-packages/src/common/hive/install_hive.sh b/bigtop-packages/src/common/hive/install_hive.sh
        index 71779e9..e563fa1 100755
        --- a/bigtop-packages/src/common/hive/install_hive.sh
        +++ b/bigtop-packages/src/common/hive/install_hive.sh
        @@ -166,8 +166,5 @@ chmod 755 ${PYTHON_DIR}/hive_metastore/*-remote
         # Dir for Metastore DB
         install -d -m 1777 $PREFIX/var/lib/hive/metastore/
         
        -# We need to get rid of jars that happen to be shipped in other packages
        -rm -f ${LIB_DIR}/lib/hbase-*.jar ${LIB_DIR}/lib/zookeeper-*.jar
        -
         # Remove some source which gets installed
         rm -rf ${LIB_DIR}/lib/php/ext
        diff --git a/bigtop-packages/src/deb/hive/control b/bigtop-packages/src/deb/hive/control
        index 5a12524..eef011c 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
        +Depends: adduser, hadoop-client, bigtop-utils, hbase, zookeeper
         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
        diff --git a/bigtop-packages/src/deb/hive/rules b/bigtop-packages/src/deb/hive/rules
        index 8c00023..abc89d4 100755
        --- a/bigtop-packages/src/deb/hive/rules
        +++ b/bigtop-packages/src/deb/hive/rules
        @@ -54,6 +54,9 @@ install-indep: metastore server
                  --build-dir=src/build/dist \
                  --doc-dir=debian/${hive_pkg_name}/usr/share/doc/${hive_pkg_name} \
                  --python-dir=debian/python-${hive_pkg_name}/usr/share/python-support/python-${hive_pkg_name}/${hive_pkg_name}
        +       # We need to get rid of jars that happen to be shipped in other CDH packages
        +       rm -f debian/${hive_pkg_name}/usr/lib/hive/lib/hbase-*.jar debian/${hive_pkg_name}/usr/lib/hive/lib/zookeeper-*.jar
        +       ln -s  /usr/lib/hbase/hbase.jar /usr/lib/zookeeper/zookeeper.jar debian/${hive_pkg_name}/usr/lib/hive/lib
                # Workaround for BIGTOP-583
                rm -f debian/${hive_pkg_name}/usr/lib/hive/lib/slf4j-log4j12-*.jar
                dh_pysupport
        diff --git a/bigtop-packages/src/rpm/hive/SPECS/hive.spec b/bigtop-packages/src/rpm/hive/SPECS/hive.spec
        index 7573616..c1811eb 100644
        --- a/bigtop-packages/src/rpm/hive/SPECS/hive.spec
        +++ b/bigtop-packages/src/rpm/hive/SPECS/hive.spec
        @@ -70,7 +70,7 @@ Source5: hive-server.default
         Source6: hive-metastore.default
         Source7: hive.1
         Source8: hive-site.xml
        -Requires: hadoop-client, bigtop-utils
        +Requires: hadoop-client, bigtop-utils, hbase, zookeeper
         Obsoletes: %{name}-webinterface
         
         %description 
        @@ -145,6 +145,10 @@ cp $RPM_SOURCE_DIR/hive-site.xml .
         # Workaround for BIGTOP-583
         %__rm -f $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/slf4j-log4j12-*.jar
         
        +# We need to get rid of jars that happen to be shipped in other CDH packages
        +%__rm -f $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/hbase-*.jar $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/zookeeper-*.jar
        +%__ln_s  /usr/lib/hbase/hbase.jar /usr/lib/zookeeper/zookeeper.jar  $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/
        +
         for service in %{hive_services}
         do
                 init_file=$RPM_BUILD_ROOT/%{initd_dir}/%{name}-${service}
        
        
        Show
        Roman Shaposhnik added a comment - Here's a patch inline diff --git a/bigtop-packages/src/common/hive/install_hive.sh b/bigtop-packages/src/common/hive/install_hive.sh index 71779e9..e563fa1 100755 --- a/bigtop-packages/src/common/hive/install_hive.sh +++ b/bigtop-packages/src/common/hive/install_hive.sh @@ -166,8 +166,5 @@ chmod 755 ${PYTHON_DIR}/hive_metastore/*-remote # Dir for Metastore DB install -d -m 1777 $PREFIX/var/lib/hive/metastore/ -# We need to get rid of jars that happen to be shipped in other packages -rm -f ${LIB_DIR}/lib/hbase-*.jar ${LIB_DIR}/lib/zookeeper-*.jar - # Remove some source which gets installed rm -rf ${LIB_DIR}/lib/php/ext diff --git a/bigtop-packages/src/deb/hive/control b/bigtop-packages/src/deb/hive/control index 5a12524..eef011c 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 +Depends: adduser, hadoop-client, bigtop-utils, hbase, zookeeper 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 diff --git a/bigtop-packages/src/deb/hive/rules b/bigtop-packages/src/deb/hive/rules index 8c00023..abc89d4 100755 --- a/bigtop-packages/src/deb/hive/rules +++ b/bigtop-packages/src/deb/hive/rules @@ -54,6 +54,9 @@ install-indep: metastore server --build-dir=src/build/dist \ --doc-dir=debian/${hive_pkg_name}/usr/share/doc/${hive_pkg_name} \ --python-dir=debian/python-${hive_pkg_name}/usr/share/python-support/python-${hive_pkg_name}/${hive_pkg_name} + # We need to get rid of jars that happen to be shipped in other CDH packages + rm -f debian/${hive_pkg_name}/usr/lib/hive/lib/hbase-*.jar debian/${hive_pkg_name}/usr/lib/hive/lib/zookeeper-*.jar + ln -s /usr/lib/hbase/hbase.jar /usr/lib/zookeeper/zookeeper.jar debian/${hive_pkg_name}/usr/lib/hive/lib # Workaround for BIGTOP-583 rm -f debian/${hive_pkg_name}/usr/lib/hive/lib/slf4j-log4j12-*.jar dh_pysupport diff --git a/bigtop-packages/src/rpm/hive/SPECS/hive.spec b/bigtop-packages/src/rpm/hive/SPECS/hive.spec index 7573616..c1811eb 100644 --- a/bigtop-packages/src/rpm/hive/SPECS/hive.spec +++ b/bigtop-packages/src/rpm/hive/SPECS/hive.spec @@ -70,7 +70,7 @@ Source5: hive-server.default Source6: hive-metastore.default Source7: hive.1 Source8: hive-site.xml -Requires: hadoop-client, bigtop-utils +Requires: hadoop-client, bigtop-utils, hbase, zookeeper Obsoletes: %{name}-webinterface %description @@ -145,6 +145,10 @@ cp $RPM_SOURCE_DIR/hive-site.xml . # Workaround for BIGTOP-583 %__rm -f $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/slf4j-log4j12-*.jar +# We need to get rid of jars that happen to be shipped in other CDH packages +%__rm -f $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/hbase-*.jar $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/zookeeper-*.jar +%__ln_s /usr/lib/hbase/hbase.jar /usr/lib/zookeeper/zookeeper.jar $RPM_BUILD_ROOT/%{usr_lib_hive}/lib/ + for service in %{hive_services} do init_file=$RPM_BUILD_ROOT/%{initd_dir}/%{name}-${service}
        Hide
        Peter Linnell added a comment -

        +1 LGTM

        Show
        Peter Linnell added a comment - +1 LGTM

          People

          • Assignee:
            Roman Shaposhnik
            Reporter:
            Roman Shaposhnik
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development