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

Make it easier to get a table from shell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.94.0
    • 0.94.0, 0.95.0
    • shell
    • Reviewed

    Description

      The one argument constructor to HTable was removed at some point, which means that you now have to pass in a Configuration to instantiate an HTable. This is annoying for me when I create quick scripts.

      This JIRA is a tiny patch which lets you get an HTable instance in the shell by doing

      foo_table = @shell.hbase_table('foo').table

      Basically, it is changing table to be a public member rather than a private one.

      Attachments

        1. publicTable.patch
          0.4 kB
          Ben West

        Activity

          People

            xodarap Ben West
            xodarap Ben West
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: