Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22393

HBOSS: Shaded external dependencies to avoid conflicts with Hadoop and HBase

    XMLWordPrintableJSON

    Details

    • Release Note:
      Hide
      <!-- markdown -->

      HBOSS now generates a single jar file that can be dropped into an HBase installation. This jar contains the thirdparty dependencies needed for HBOSS's implementation and communication with ZK (for the ZK Lock Manager).

      HBOSS still relies on both HBase and Hadoop jars to be present at runtime. It also relies on the slf4j-api jar. It no longer includes an slf4j binding by default.
      Show
      <!-- markdown --> HBOSS now generates a single jar file that can be dropped into an HBase installation. This jar contains the thirdparty dependencies needed for HBOSS's implementation and communication with ZK (for the ZK Lock Manager). HBOSS still relies on both HBase and Hadoop jars to be present at runtime. It also relies on the slf4j-api jar. It no longer includes an slf4j binding by default.

      Description

      Hadoop uses a very old version of Curator, and if it ever ends up in the classpath with HBOSS you can get this:

      Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.curator.framework.recipes.locks.InterProcessMutex.isOwnedByCurrentThread()Z from class org.apache.hadoop.hbase.oss.sync.ZKTreeLockManager

      I think the simplest solution is to just shade Curator.

        Attachments

        1. 0001-HBASE-22393.patch
          9 kB
          Wellington Chevreuil
        2. 0001-HBASE-22393-HBOSS-Shade-dependencies-to-prevent-conf.patch
          11 kB
          Sean Mackrory
        3. HBASE-22393.002.patch
          10 kB
          Sean Mackrory
        4. HBASE-22393.001.patch
          1 kB
          Sean Mackrory

          Issue Links

            Activity

              People

              • Assignee:
                mackrorysd Sean Mackrory
                Reporter:
                mackrorysd Sean Mackrory
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: