@@ -18,27 +18,42 @@ def service_not_exists(service):
1818 'fs.default.name' : 'hdfs://ranger-hadoop:9000' ,
1919 'hadoop.security.authentication' : 'simple' ,
2020 'hadoop.security.authorization' : 'true' ,
21+ 'policy.download.auth.users' : 'hdfs' ,
22+ 'tag.download.auth.users' : 'hdfs' ,
23+ 'userstore.download.auth.users' : 'hdfs' ,
2124 'ranger.plugin.hdfs.policy.refresh.synchronous' :'true' }})
2225
2326hive = RangerService ({'name' : 'dev_hive' , 'type' : 'hive' ,
2427 'configs' : {'username' : 'hive' , 'password' : 'hive' ,
2528 'jdbc.driverClassName' : 'org.apache.hive.jdbc.HiveDriver' ,
2629 'jdbc.url' : 'jdbc:hive2://ranger-hive:10000' ,
2730 'hadoop.security.authorization' : 'true' ,
31+ 'policy.download.auth.users' : 'hive' ,
32+ 'tag.download.auth.users' : 'hive' ,
33+ 'userstore.download.auth.users' : 'hive' ,
2834 'ranger.plugin.hive.policy.refresh.synchronous' :'true' }})
2935
3036kafka = RangerService ({'name' : 'dev_kafka' , 'type' : 'kafka' ,
3137 'configs' : {'username' : 'kafka' , 'password' : 'kafka' ,
3238 'zookeeper.connect' : 'ranger-zk.rangernw:2181' ,
39+ 'policy.download.auth.users' : 'kafka' ,
40+ 'tag.download.auth.users' : 'kafka' ,
41+ 'userstore.download.auth.users' : 'kafka' ,
3342 'ranger.plugin.kafka.policy.refresh.synchronous' :'true' }})
3443
3544knox = RangerService ({'name' : 'dev_knox' , 'type' : 'knox' ,
3645 'configs' : {'username' : 'knox' , 'password' : 'knox' , 'knox.url' : 'https://ranger-knox:8443' ,
46+ 'policy.download.auth.users' : 'knox' ,
47+ 'tag.download.auth.users' : 'knox' ,
48+ 'userstore.download.auth.users' : 'knox' ,
3749 'ranger.plugin.knox.policy.refresh.synchronous' :'true' }})
3850
3951yarn = RangerService ({'name' : 'dev_yarn' , 'type' : 'yarn' ,
4052 'configs' : {'username' : 'yarn' , 'password' : 'yarn' ,
4153 'yarn.url' : 'http://ranger-hadoop:8088' ,
54+ 'policy.download.auth.users' : 'yarn' ,
55+ 'tag.download.auth.users' : 'yarn' ,
56+ 'userstore.download.auth.users' : 'yarn' ,
4257 'ranger.plugin.yarn.policy.refresh.synchronous' :'true' }})
4358
4459hbase = RangerService ({'name' : 'dev_hbase' , 'type' : 'hbase' ,
@@ -49,11 +64,17 @@ def service_not_exists(service):
4964 'hbase.zookeeper.property.clientPort' : '2181' ,
5065 'hbase.zookeeper.quorum' : 'ranger-zk' ,
5166 'zookeeper.znode.parent' : '/hbase' ,
67+ 'policy.download.auth.users' : 'hbase' ,
68+ 'tag.download.auth.users' : 'hbase' ,
69+ 'userstore.download.auth.users' : 'hbase' ,
5270 'ranger.plugin.hbase.policy.refresh.synchronous' :'true' }})
5371
5472kms = RangerService ({'name' : 'dev_kms' , 'type' : 'kms' ,
5573 'configs' : {'username' : 'keyadmin' , 'password' : 'rangerR0cks!' ,
5674 'provider' : 'http://ranger-kms:9292' ,
75+ 'policy.download.auth.users' : 'rangerkms' ,
76+ 'tag.download.auth.users' : 'rangerkms' ,
77+ 'userstore.download.auth.users' : 'rangerkms' ,
5778 'ranger.plugin.kms.policy.refresh.synchronous' :'true' }})
5879
5980trino = RangerService ({'name' : 'dev_trino' ,
@@ -63,6 +84,9 @@ def service_not_exists(service):
6384 'password' : 'trino' ,
6485 'jdbc.driverClassName' : 'io.trino.jdbc.TrinoDriver' ,
6586 'jdbc.url' : 'jdbc:trino://ranger-trino:8080' ,
87+ 'policy.download.auth.users' : 'trino' ,
88+ 'tag.download.auth.users' : 'trino' ,
89+ 'userstore.download.auth.users' : 'trino' ,
6690 'ranger.plugin.trino.policy.refresh.synchronous' :'true'
6791 }})
6892
@@ -72,6 +96,9 @@ def service_not_exists(service):
7296 'configs' : {'username' : 'hdfs' , 'password' : 'hdfs' ,
7397 'ozone.om.http-address' : 'http://om:9874' ,
7498 'hadoop.security.authentication' : 'simple' ,
99+ 'policy.download.auth.users' : 'ozone' ,
100+ 'tag.download.auth.users' : 'ozone' ,
101+ 'userstore.download.auth.users' : 'ozone' ,
75102 'ranger.plugin.ozone.policy.refresh.synchronous' :'true' }})
76103
77104services = [hdfs , yarn , hive , hbase , kafka , knox , kms , trino , ozone ]
0 commit comments