You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ranger.apache.org by arun kumar <pm...@hotmail.com> on 2017/08/30 21:42:09 UTC
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
Re: Error while starting kafka broker with Apache Ranger
Posted by Don Bosco Durai <bo...@apache.org>.
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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 3:53 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 3:41 PM
To: Don Bosco Durai <bo...@apache.org>, "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:31 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by arun kumar <pm...@hotmail.com>.
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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 3:41 PM
To: Don Bosco Durai <bo...@apache.org>, "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:31 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by Don Bosco Durai <bo...@apache.org>.
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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 3:41 PM
To: Don Bosco Durai <bo...@apache.org>, "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:31 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by arun kumar <pm...@hotmail.com>.
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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:31 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by Don Bosco Durai <bo...@apache.org>.
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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:31 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by arun kumar <pm...@hotmail.com>.
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...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by Don Bosco Durai <bo...@apache.org>.
Should it be “//”?
Bosco
From: arun kumar <pm...@hotmail.com>
Date: Wednesday, August 30, 2017 at 3:23 PM
To: "user@ranger.apache.org" <us...@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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by arun kumar <pm...@hotmail.com>.
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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by Don Bosco Durai <bo...@apache.org>.
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...@hotmail.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by arun kumar <pm...@hotmail.com>.
Hi Ramesh
I have both the server running on same machine with different ports, only difference is the port on properties file.
Thanks
Arunkumar
________________________________
From: Ramesh Mani <rm...@hortonworks.com>
Sent: Wednesday, August 30, 2017 5:49 PM
To: user@ranger.apache.org
Subject: Re: Error while starting kafka broker with Apache Ranger
Arunkumar,
This looks like the broker which is failing may not be having the ranger configuration. Please make sure that it also has the necessary ranger plugin jars and ranger*.xml files in its class path and it is picking up correctly. Check the permission of the jars and files also.
Thanks,
Ramesh
From: arun kumar <pm...@hotmail.com>>
Reply-To: "user@ranger.apache.org<ma...@ranger.apache.org>" <us...@ranger.apache.org>>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org<ma...@ranger.apache.org>" <us...@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
Re: Error while starting kafka broker with Apache Ranger
Posted by Ramesh Mani <rm...@hortonworks.com>.
Arunkumar,
This looks like the broker which is failing may not be having the ranger configuration. Please make sure that it also has the necessary ranger plugin jars and ranger*.xml files in its class path and it is picking up correctly. Check the permission of the jars and files also.
Thanks,
Ramesh
From: arun kumar <pm...@hotmail.com>>
Reply-To: "user@ranger.apache.org<ma...@ranger.apache.org>" <us...@ranger.apache.org>>
Date: Wednesday, August 30, 2017 at 2:42 PM
To: "user@ranger.apache.org<ma...@ranger.apache.org>" <us...@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