You could ignore this file. It overrides some env properties. Check the other 
files and also the log file of the failed broker. Make sure the Ranger portal 
host is correct in that.

 

Thanks

 

Bosco

 

 

From: arun kumar <pm_arunku...@hotmail.com>
Reply-To: <user@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 3:53 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>
Subject: Re: Error while starting kafka broker with Apache Ranger

 

I don't see 

/etc/kafka/conf/kafka-ranger-env.sh

 

 

-rwxr-xr-x. 1 root root   69 Aug 30 17:38 ranger-security.xml

-rwxr-xr-x. 1 root root 1944 Aug 30 17:38 ranger-policymgr-ssl.xml

-rwxr-xr-x. 1 root root 9671 Aug 30 17:48 ranger-kafka-audit.xml

-rwxr-xr-x. 1 root root 2928 Aug 30 17:49 ranger-kafka-security.xml

 

Now, How do I get kafka-ranger-env.sh ? can you please share the content of 
this file?

 

Thanks

Arunkumar

 

 

From: Don Bosco Durai <bo...@apache.org>
Sent: Wednesday, August 30, 2017 6:44 PM
To: user@ranger.apache.org
Subject: Re: Error while starting kafka broker with Apache Ranger 

 

This is in my env. Since you have 2 brokers on the same machine, you might 
check accordingly..

 

ls -l /etc/kafka/conf/*ranger*

-rwxr-xr-x 1 kafka hadoop 1323 Jul 17 07:38 /etc/kafka/conf/kafka-ranger-env.sh

-rwxr--r-- 1 kafka hadoop 2369 Aug 30 15:46 
/etc/kafka/conf/ranger-kafka-audit.xml

-rwxr--r-- 1 kafka hadoop  912 Jul 17 07:38 
/etc/kafka/conf/ranger-kafka-security.xml

-rwxr--r-- 1 kafka hadoop 1023 Jul 17 07:38 
/etc/kafka/conf/ranger-policymgr-ssl.xml

-rw-r--r-- 1 kafka hadoop   64 Aug 30 16:13 /etc/kafka/conf/ranger-security.xml

 

Bosco

 

 

From: arun kumar <pm_arunku...@hotmail.com>
Reply-To: <user@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 3:41 PM
To: Don Bosco Durai <bo...@apache.org>, "user@ranger.apache.org" 
<user@ranger.apache.org>
Subject: Re: Error while starting kafka broker with Apache Ranger

 

Hi Bosco

 

Could you please let me know specific properties to look for. Both the brokers 
are running with almost same properties

 

Thanks

Arunkumar

 

From: Don Bosco Durai <bo...@apache.org>
Sent: Wednesday, August 30, 2017 6:33 PM
To: arun kumar; user@ranger.apache.org
Subject: Re: Error while starting kafka broker with Apache Ranger 

 

If one broker is working, then you might have to compare the logs for both the 
brokers (and ranger properties). Check if the URLs are consistent in both of 
the them.

 

Thanks

 

Bosco

 

 

From: arun kumar <pm_arunku...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:31 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>, Don Bosco Durai 
<bo...@apache.org>
Subject: Re: Error while starting kafka broker with Apache Ranger

 

Sorry Don

 

It is a typo. This is what I have on the file.

 

POLICY_MGR_URL=http://localhost:6080

 

Thanks

Arunkumar

 

From: Don Bosco Durai <bo...@apache.org>
Sent: Wednesday, August 30, 2017 6:24 PM
To: arun kumar; user@ranger.apache.org
Subject: Re: Error while starting kafka broker with Apache Ranger 

 

Should it be “//”?

 

Bosco

 

 

From: arun kumar <pm_arunku...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>, Don Bosco Durai 
<bo...@apache.org>
Subject: Re: Error while starting kafka broker with Apache Ranger

 

Hi Don

 

I have Ranger portal as http:/localhost:6080. I also tried with hostname as 
well.

 

Thanks

Arunkumar

From: Don Bosco Durai <bo...@apache.org>
Sent: Wednesday, August 30, 2017 5:44 PM
To: user@ranger.apache.org
Subject: Re: Error while starting kafka broker with Apache Ranger 

 

Seems the URL to Ranger Portal is incorrect. Are you reusing the same install 
properties? If not, can you a diff of the properties files used by both the 
Broker?

 

Bosco

 

 

From: arun kumar <pm_arunku...@hotmail.com>
Reply-To: <user@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>
Subject: Error while starting kafka broker with Apache Ranger

 

Hi All

 

I am trying to configure ranger with kafka and I am getting an exception "URI 
is not absolute". I have 2 brokers running on same machine one starts without 
exception but the other does not. Any insight is highly appreciated. Erro log 
below for your reference.

 

Thanks in advance

Arunkumar

 

 

 

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:127)

at 
org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:264)

at 
org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:202)

at org.apache.ranger.plugin.util.PolicyRefresher.run(PolicyRefresher.java:171)

Caused by: java.lang.IllegalArgumentException: URI is not absolute

at java.net.URI.toURL(URI.java:1088)

at 
com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:159)

at 
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)

... 8 more

 

 

Reply via email to