Hi,
I have a Kerberised HDP (2.6.5) setup with CDAP security enabled. I have configured CDAP Ranger security extension plugin for authorization. However, when I login to CDAP UI, I don’t see any namespace or any entities, even though my user has permission to all namespaces (default namespace as well) as well as all entities in all namespaces.
On debugging the issue a bit, I found that the Ranger policy cache json file created on CDAP master node has resources{} section empty for all my policies. Though rest of the properties in policycache json file such as accesses{}, users{} is present. CDAP master logs has messages like:
2019-01-16 19:06:25,421 INFO [leader-election-election-master.services] util.PolicyRefresher: PolicyRefresher(serviceName=platacc003-reflex-platform_cdap): found updated version. lastKnownVersion=-1; newVersion=80
2019-01-16 19:06:25,501 WARN [leader-election-election-master.services] policyresourcematcher.RangerDefaultPolicyResourceMatcher: RangerDefaultPolicyResourceMatcher.init() failed: policyResources is null or empty, or serviceDef is null. (serviceDef=cdap, policyResourceKeys=, validHierarchy=)
2019-01-16 19:06:25,514 WARN [leader-election-election-master.services] policyresourcematcher.RangerDefaultPolicyResourceMatcher: RangerDefaultPolicyResourceMatcher.init() failed: policyResources is null or empty, or serviceDef is null. (serviceDef=cdap, policyResourceKeys=, validHierarchy=)
2019-01-16 19:06:25,514 WARN [leader-election-election-master.services] policyresourcematcher.RangerDefaultPolicyResourceMatcher: RangerDefaultPolicyResourceMatcher.init() failed: policyResources is null or empty, or serviceDef is null. (serviceDef=cdap, policyResourceKeys=, validHierarchy=)
2019-01-16 19:06:25,514 WARN [leader-election-election-master.services] policyresourcematcher.RangerDefaultPolicyResourceMatcher: RangerDefaultPolicyResourceMatcher.init() failed: policyResources is null or empty, or serviceDef is null. (serviceDef=cdap, policyResourceKeys=, validHierarchy=)
2019-01-16 19:06:25,515 WARN [leader-election-election-master.services] policyresourcematcher.RangerDefaultPolicyResourceMatcher: RangerDefaultPolicyResourceMatcher.init() failed: policyResources is null or empty, or serviceDef is null. (serviceDef=cdap, policyResourceKeys=, validHierarchy=)
I checked Ranger Admin access.log file and saw that CDAP REST API request to download policies was successful with 200 response code.
Can someone please help here in this regard?
Thanks & Regards,
Rajat
--
You received this message because you are subscribed to the Google Groups "CDAP User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cdap-user+...@googlegroups.com.
To post to this group, send email to cdap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cdap-user/DC4AF9D9-D4DC-4D23-8319-FDEE664DF968%40guavus.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to cdap-user+unsubscribe@googlegroups.com.
For CDAP 5.1.2 --
To unsubscribe from this group and stop receiving emails from it, send an email to cdap-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cdap-user/0d481b12-a37e-4f4e-b767-a36e93a192f1%40googlegroups.com.