[ 
https://issues.apache.org/jira/browse/HBASE-11001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell updated HBASE-11001:
-----------------------------------

    Attachment: 11001.patch

Untested patch. Should work modulo some minor fixups. Questions at this point:

I don't want to mention the cell grant syntax in the help for the grant 
command, this is a for-testing-only feature so that would be at best confusing 
for the user. Or should this be another shell command? (But wouldn't that be 
even more confusing?)

Fine to just print the standard formatter's "<rows> row(s) processed in <time>" 
message at the end of the scan? Or should there be some kind of progress 
indication at intervals, like with the 'count' command? I think progress 
indication might be more trouble than it's worth.

If no feedback then I will proceed to test and clean up these changes, insure 
TestShell still passes, and commit them. 

> Shell support for granting cell permissions for testing
> -------------------------------------------------------
>
>                 Key: HBASE-11001
>                 URL: https://issues.apache.org/jira/browse/HBASE-11001
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>             Fix For: 0.99.0, 0.98.2
>
>         Attachments: 11001.patch
>
>
> 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. 
> {noformat}
> grant '<userOrGroup>', '<perms>', '[<ns>:]<table>', { ... }
> {noformat}
> where the last argument is 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))" }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to