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
Attachments
Issue Links
- relates to
-
HBASE-11002 Shell support for changing cell visibility for testing
- Closed