Support Questions

Find answers, ask questions, and share your expertise

ranger-kafka-plugin

avatar
Contributor

I want to know install kafka-plugin in ranger,what is the kafka and ranger version? It is best by test.

1 ACCEPTED SOLUTION

avatar
Master Mentor

It depends on what release of HDP you're using, in 2.5 the steps to install Kafka ranger plugin are here http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_security/content/kafka_plugin.html Kafka version is 0.10.0.1 and ranger is 0.6

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_release-notes/content/ch_relnotes_v250.ht...

View solution in original post

6 REPLIES 6

avatar
Master Mentor

It depends on what release of HDP you're using, in 2.5 the steps to install Kafka ranger plugin are here http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_security/content/kafka_plugin.html Kafka version is 0.10.0.1 and ranger is 0.6

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_release-notes/content/ch_relnotes_v250.ht...

avatar
Contributor

Hi Sir,I have try to take your addvice about that version.but it didn't success,So can you tell me your zookeeper's version.

avatar
Expert Contributor

I cannot say which is the best, but in production we configured HDP 2.4.2 with 0.5.2 Ranger and 0.9.0.1 Kafka and worked well. If you are going with newer version you might use newer versions of both :).

avatar
Contributor

can you tell me your zookeeper's version?

avatar
Master Mentor

zookeeper has been 3.4.6 for the last few HDP versions.

avatar
Contributor
[2016-10-15 17:46:24,378] ERROR Ranger Plugin returned null. Returning 
false 
(org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizer)
	[2016-10-15 17:45:59,203] ERROR PolicyRefresher(serviceName=null): failed to refresh policies. Will continue to use last known version of policies (-1) (org.apache.ranger.plugin.util.PolicyRefresher)
com.sun.jersey.api.client.ClientHandlerException: java.lang.IllegalArgumentException: URI is not absolute
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:151)
    at com.sun.jersey.api.client.Client.handle(Client.java:648)
    at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680)
    at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
    at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:507)
    at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:115)
    at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:217)
    at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:185)
    at org.apache.ranger.plugin.util.PolicyRefresher.run(PolicyRefresher.java:158)
Caused by: java.lang.IllegalArgumentException: URI is not absolute
    at java.net.URI.toURL(URI.java:1095)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:159)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
    ... 8 more

	
Have you seen this error?