Created on 12-02-2016 03:05 AM - edited 08-19-2019 02:06 AM
my SOLR server is up and running but when ranger tries to connect to it I get error :
iam not sure if the ranger audit url I am using is correct since its unreachable "http://hadoop1:8983/solr/ranger_audits" ?
if I try to go to this url I get the error
HTTP ERROR 404 Problem accessing /solr/ranger_audits. Reason: Not Found
2016-12-01 22:25:03,511 [http-bio-6080-exec-5] ERROR org.apache.ranger.solr.SolrUtil (SolrUtil.java:78) - Error from Solr server. org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://hadoop1:8983/solr/ranger_audits: Expected mime type application/octet-stream but got text/html. <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing /solr/ranger_audits/select. Reason: <pre> Not Found</pre></p> </body> </html>
the SOLR console is reachable
Created 12-05-2016 10:35 PM
@Sami Ahmad - You've got a couple of things going on. It looks like you are not using the Ambari Infra Solr installation. To use an external Solr, follow these instructions. You'll be using scripts rather than the UI to create the collection.
The version of Solr you as using may not work with Ambari. You should use 5.2.1 or 5.5.2 to be consistent with what's released with HDP. If you go to 6.x, being a major release, you may encounter significatn issues. Also note that $SOLR/server/lib is not the directory where your config files wold belong with Solr anyway. Normally you'll put them into a "config" directory somewhere. They cannot be in a directory with binary files or you will definitely encounter issues when it tries to load the directory into Zookeeper and then you have a bigger mess to clean up.
Created 12-05-2016 11:38 PM
@Sami Ahmad Which version of Ambari are you on? Ambari Infra is only in Ambari 2.4.0 and later.
Created on 12-05-2016 11:56 PM - edited 08-19-2019 02:05 AM
I just checked and Ambari Infra is already installed in my HDP2.5 cluster .
Created 12-06-2016 12:18 AM
Are you also using Ambari 2.4.x? I believe Ambari Infra is shipped wit Ambari 2.4.x, not HDP 2.5. It's sort of like Ambari Metrics is part of Ambari but not directly part of HDP, even though it works with HDP. Assuming you have Ambari 2.4.x, do you don't see "Ambari Infra" when you select Add Service (it does not have the name Solr in it in Ambari)?
Created 12-06-2016 06:26 PM
Glad you have it worked out. Somehow I missed your last post stating that it is already installed, so my previous comment is OBE.