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

Ensure endpoint-only table coprocessors can be dynamically loaded

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0.1, 1.1.0, 0.98.11, 2.0.0
    • None
    • None
    • Reviewed

    Description

      I came across the blog post http://www.3pillarglobal.com/insights/hbase-coprocessors and this interesting bit:

      This means that you can load both Observer and Endpoint Coprocessor statically using the following Method of HTableDescriptor:

      addCoprocessor(String className, org.apache.hadoop.fs.Path jarFilePath, int priority, Map<String,String> kvs) throws IOException
      

      In my case, the above method worked fine for Observer Coprocessor but didn’t work for Endpoint Coprocessor, causing the table to become unavailable and finally I had to restart my HBase. The same Endpoint Coprocessor worked fine when loaded statically. Use the above method for Endpoint Coprocessor with caution.

      To check this I wrote a test, attached. It passes, all seems ok. Guessing the complaint was due to user error, probably jar placement/path issues.

      Let's still commit the test.

      Attachments

        1. HBASE-13106.patch
          10 kB
          Andrew Kyle Purtell
        2. HBASE-13106.patch
          9 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: