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

mapreduce.TableInputFormatBase should create its own Connection if needed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0.0, 1.1.0
    • 1.0.0, 1.1.0
    • mapreduce

    Description

      Folks extending the mapreduce.TableInputFormatBase class and relying on the 0.98 way of doing table initialization (as given in the example in the javadoc) will currently always get an error.

      When taking in a HTable, the current implementation retrieves a Connection instance from the table and then an Admin instance from said Connection. The getAdmin call validates that it only is called on unmanaged connections, but when folks construct an HTable instance according to the examples, it ends up backed by a managed connection.

      Attachments

        1. HBASE-13027.3.patch.txt
          41 kB
          Sean Busbey
        2. HBASE-13027.2.patch.txt
          41 kB
          Sean Busbey
        3. HBASE-13027-0.98.1.patch.txt
          33 kB
          Sean Busbey
        4. HBASE-13027.1.patch.txt
          40 kB
          Sean Busbey

        Issue Links

          Activity

            People

              busbey Sean Busbey
              busbey Sean Busbey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: