<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ranger Solr on HDP 2.3.4 unable to refresh policies in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135520#M23296</link>
    <description>&lt;P&gt;Please check the value for property " ranger.plugin.solr.policy.rest.url" in ranger-solr-security.xml in the solr conf folder.&lt;/P&gt;&lt;P&gt;This should have the right value for the ranger admin. You can put the right value and restart solr plugin.&lt;/P&gt;&lt;P&gt;Not sure why the enabling of ranger solr plugin didnt update the right value. Did you see any exception in when you enabled solr plugin. May be you can try reinstalling it will be debug on the enable script to see if there are any exceptions and let us know.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 13:38:48 GMT</pubDate>
    <dc:creator>rmani</dc:creator>
    <dc:date>2016-03-21T13:38:48Z</dc:date>
    <item>
      <title>Ranger Solr on HDP 2.3.4 unable to refresh policies</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135519#M23295</link>
      <description>&lt;P&gt;
	I just installed a new cluster on HDP 2.3.4 with Solr 5.2.1 including Kerberos + Ranger Solr Plugin. Following this article &lt;A href="https://community.hortonworks.com/articles/15159/securing-solr-collections-with-ranger-kerberos.html" target="_blank"&gt;https://community.hortonworks.com/articles/15159/securing-solr-collections-with-ranger-kerberos.html&lt;/A&gt;
&lt;/P&gt;
&lt;P&gt;
	However when I enable the Ranger Solr Plugin and restart solr I am seeing the following error:
&lt;/P&gt;
&lt;PRE&gt;
632300 [Thread-15] WARN  org.apache.ranger.plugin.util.PolicyRefresher  [   ] – cache file does not exist or not readble 'null'
662301 [Thread-15] ERROR org.apache.ranger.plugin.util.PolicyRefresher  [   ] – PolicyRefresher(serviceName=null): failed to refresh policies. Will continue to use last known version of policies (-1)
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:73)
        at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:205)
        at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:175)
        at org.apache.ranger.plugin.util.PolicyRefresher.run(PolicyRefresher.java:154)
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
&lt;/PRE&gt;
&lt;P&gt;
	This is what it looks like on HDP 2.3.2
&lt;/P&gt;
&lt;PRE&gt;
INFO  - 2016-03-15 16:54:50.478; [   ] org.apache.ranger.plugin.util.PolicyRefresher; PolicyRefresher(serviceName=mycluster_solr): found updated version. lastKnownVersion=-1; newVersion=61
&lt;/PRE&gt;
&lt;P&gt;
	On 2.3.4 the &lt;STRONG&gt;serviceName&lt;/STRONG&gt; is not replaced by the actual repository name, which was set in the install.properties file. On 2.3.2 the serviceName is replaced by the repository name &amp;lt;clustername&amp;gt;_solr.
&lt;/P&gt;
&lt;P&gt;
	Looks like a bug :(
&lt;/P&gt;
&lt;P&gt;
	 Anyone seen this issue before? Any possible workaround?
&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2016 15:17:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135519#M23295</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-03-19T15:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Solr on HDP 2.3.4 unable to refresh policies</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135520#M23296</link>
      <description>&lt;P&gt;Please check the value for property " ranger.plugin.solr.policy.rest.url" in ranger-solr-security.xml in the solr conf folder.&lt;/P&gt;&lt;P&gt;This should have the right value for the ranger admin. You can put the right value and restart solr plugin.&lt;/P&gt;&lt;P&gt;Not sure why the enabling of ranger solr plugin didnt update the right value. Did you see any exception in when you enabled solr plugin. May be you can try reinstalling it will be debug on the enable script to see if there are any exceptions and let us know.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 13:38:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135520#M23296</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-03-21T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Solr on HDP 2.3.4 unable to refresh policies</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135521#M23297</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt; Also please check that conf folder where there ranger config is there in the class path of the solr process. This might be the case for you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 06:16:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135521#M23297</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-03-22T06:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Solr on HDP 2.3.4 unable to refresh policies</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135522#M23298</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt; I have checked your recommendation. Unfortunately it didnt help, any other ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 22:14:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135522#M23298</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-04-06T22:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Solr on HDP 2.3.4 unable to refresh policies</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135523#M23299</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt; Thanks for the help and fixing the issue! Enabling the plugin basically changed the owner of /opt/solr/server/solr-webapp/webapp/WEB-INF/classes to root:root, changing it back to solr:solr solved the problem &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 13:35:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Solr-on-HDP-2-3-4-unable-to-refresh-policies/m-p/135523#M23299</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-05-03T13:35:34Z</dc:date>
    </item>
  </channel>
</rss>

