I am setting up ranger for NIFI,When i try to test the nifi-plug in connection getting 403 error.
Also did setup following policies for all the cluster nodes.
getting following exception
172.26.241.182 - - [07/Apr/2017:21:57:42 +0000] "GET /service/plugins/secure/policies/download/rkhdfcluster_nifi?lastKnownVersion=22&pluginIdfirstname.lastname@example.org_nifi HTTP/1.1" 401
2017-04-07 21:59:42,496 ERROR [Thread-15] o.a.ranger.plugin.util.PolicyRefresher PolicyRefresher(serviceName=rkhdfcluster_nifi): failed to refresh policies. Will continue to use last known version of policies (22) com.sun.jersey.api.client.ClientHandlerException: java.lang.RuntimeException: java.lang.NullPointerException at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155) ~[jersey-bundle-1.19.jar:1.19]
Sounds like your Ranger has been secured via ssl and NiFi cannot connect. This is often a truststore issue where the certificate being presented by NiFi is not being trusted by Ranger. Make sure the xasecure.policymgr.clientssl.keystore configured for use by the NiFi Ranger plugin is trusted by your Ranger.