XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: hbase-6055
    • Fix Version/s: hbase-6055
    • Component/s: Client, shell
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      In the HBase shell, the 'list' command and the 'list_snapshot' commands now return a jruby array of strings that can be bound to jruby variables and used for scripting purposes.

      Description

      It is really convenient to allow comamnds like list and list_snapshots return a jruby array of values in the hbase shell.

      it allows for nice things like this:

      # drop all tables starting with foo
      list("foo.*").map { |t| disable t; drop t }
      

      or

      # clone all tables that start with bar
      list_snapshots("bar.*").map { |s| clone_snapshot s, s + "-table"}
      

        Attachments

        1. hbase-7353.patch
          0.8 kB
          Jonathan Hsieh

          Issue Links

            Activity

              People

              • Assignee:
                jmhsieh Jonathan Hsieh
                Reporter:
                jmhsieh Jonathan Hsieh
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: