Hi, dear Experts!
Could you please help with the following issue?
Ranger Audit Access tab is failing with the following error:
Error running solr query, please check solr configs. Could not find a healthy node to handle the request.
in /hadoop/log/ambari-infra-solr/solr.log :
ERROR [c:audit_logs s:shard0 r:core_node2 x:audit_logs_shard0_replica1] org.apache.solr.common.SolrException (SolrException.java:148) - org.apache.solr.common.SolrException: Invalid Date String:'2017-09-05T02017
Thanks for using Cloudera Community. Based on the Post, the RangerAudits Collection has issues, which is causing the "Error running solr query, please check solr configs. Could not find a healthy node to handle the request" Message. The Date Exception shared by you refers to "audit_logs_shard0_replica1" , which isn't related to RangerAudits Collection.
The Ranger Audit UI relies on RangerAudits Collection & if the Shards of RangerAudits Collection aren't available, We get the "Error running solr query, please check solr configs. Could not find a healthy node to handle the request" Message. Open the Infra-Solr UI & Verify the State of the RangerAudits Collection by Solr UI > Cloud > Graph. If the Shards associated with RangerAudits Collection aren't Active, the Error is expected. Next, Review the Infra-Solr Service Logs & confirm the reasoning for the Shard unavailability. There can be multiple reasoning for Shard unavailability, hence Logs would be the best place to review.
For a Quicker Solution & if you are willing to lose the RangerAudits, You can delete the RangerAudits Collection & Restart the RangerAdmin Service to ensure the Collection is created afresh.
Kindly review & let us know your observation.