Description
In secure deployment of 0.98 tip, I did:
as user hbase:
add_labels 'A' create 'tb', 'f1' put 'tb', 'row', 'f1:q', 'v1', {VISIBILITY=>'A'} set_auths 'oozie', ['A']
as user oozie:
hbase(main):001:0> scan 'tb', { AUTHORIZATIONS => ['A']} ROW COLUMN+CELL 0 row(s) in 0.1030 seconds
Here is my config:
<property>
<name>hfile.format.version</name>
<value>3</value>
</property>
<property>
<name>hbase.coprocessor.master.classes</name>
<value>org.apache.hadoop.hbase.security.visibility.VisibilityController</value>
</property>
<property>
<name>hbase.coprocessor.region.classes</name>
<value>org.apache.hadoop.hbase.security.visibility.VisibilityController</value>
</property>
<property>
<name>hbase.regionserver.scan.visibility.label.generator.class</name>
<value>org.apache.hadoop.hbase.security.visibility.DefaultScanLabelGenerator</value>
</property>