XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • hbase-6055
    • hbase-6055
    • Client, shell
    • None
    • Reviewed
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: