Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1369

Hive Debian rules file does not set maven.repo.local

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The Hive Debian rules file when calling do-component-build does not set the maven.repo.local command line argument and so when Hive builds it uses the default location for the local maven repo, which breaks if HBase was built in a different m2 repo while Hive was using the default, causing Hive to be unable to find hbase-common.

      Noticied this issue because my HOME variable was not set to /root and was instead /, which caused HBase to put artifacts in /.m2 while Hive was looking for them in /root/.m2.

      You can see https://github.com/apache/bigtop/blob/master/bigtop-packages/src/deb/hbase/rules that -Dmaven.repo.local gets set, but in https://github.com/apache/bigtop/blob/master/bigtop-packages/src/deb/hive/rules it's not.

      I also saw that HCatalog's rules file does not set the variable as well, but I haven't check yet if that breaks things.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeid Julien Eid
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: