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

Shell support for granting cell permissions for testing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.99.0, 0.98.2
    • None
    • None

    Description

      For testing purposes it would be useful if the shell can support a simple syntax for adding cell ACLs to existing cells. Consider a combination of current 'grant' and 'scan' commands.

      grant <table>, <permissions>, <scan>
      

      where <table> is a string, a table name, optionally prefixed with a namespace

      where <permissions> is a Hash type that maps permissions to users, for example:

      • { "user1" => "RW", "user2" => "R", "@group1" => "R" }

      where <scan> is a Hash type containing a scanner specification, for example (borrowed from scan.rb):

      • { COLUMNS => 'c1', STARTROW => 'abc', ENDROW => 'xyz' }
      • { COLUMNS => 'c1', TIMERANGE => [123, 456] }
      • { COLUMNS => ['c1', 'c2'], FILTER => "(PrefixFilter ('foo') AND (QualifierFilter (=, 'bar:'))) AND (TimestampsFilter (123, 456))" }

      Attachments

        1. 11001.patch
          3 kB
          Andrew Kyle Purtell
        2. HBASE-11001.patch
          8 kB
          Andrew Kyle Purtell
        3. HBASE-11001-addendum-1.patch
          2 kB
          Andrew Kyle Purtell

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: