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

CoprocessorClassLoader should not exempt Hive classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1, 1.1.0, 0.98.12, 2.0.0
    • 0.98.14, 1.2.0, 1.3.0, 2.0.0
    • Coprocessors
    • None
    • Incompatible change, Reviewed
    • Hide
      Starting from HBase 2.0, CoprocessorClassLoader will not exempt hadoop classes or zookeeper classes. This means that if the custom coprocessor jar contains hadoop or zookeeper packages and classes, they will be loaded by the CoprocessorClassLoader. Only hbase packages and classes are exempted from the CoprocessorClassLoader. They (and their dependencies) are loaded by the parent server class loader.
      Show
      Starting from HBase 2.0, CoprocessorClassLoader will not exempt hadoop classes or zookeeper classes. This means that if the custom coprocessor jar contains hadoop or zookeeper packages and classes, they will be loaded by the CoprocessorClassLoader. Only hbase packages and classes are exempted from the CoprocessorClassLoader. They (and their dependencies) are loaded by the parent server class loader.

    Description

      CoprocessorClassLoader is used to load classes from the coprocessor jar.
      Certain classes are exempt from being loaded by this ClassLoader, which means they will be ignored in the coprocessor jar, but loaded from parent classpath instead.

      One problem is that we categorically exempt "org.apache.hadoop".
      But it happens that Hive packages start with "org.apache.hadoop".

      There is no reason to exclude hive classes from theCoprocessorClassLoader.
      HBase does not even include Hive jars.

      Attachments

        1. HBASE-13706-0.98.patch
          1 kB
          Jerry He
        2. HBASE-13706-branch-1.patch
          1 kB
          Jerry He
        3. HBASE-13706-master-v2.patch
          0.9 kB
          Sean Busbey
        4. HBASE-13706-master-v2.patch
          0.9 kB
          Jerry He
        5. HBASE-13706.patch
          2 kB
          Jerry He

        Issue Links

          Activity

            People

              jinghe Jerry He
              jinghe Jerry He
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: