Support Questions

Find answers, ask questions, and share your expertise

Ranger. Collection not found : ranger_audits

avatar
New Contributor

I've added ranger as service in Cloudera manager, but when I click 'audit' from the menu i get the following error :

 

2.jpg

1 ACCEPTED SOLUTION

avatar
Super Collaborator

Hello @TouguiOmar,

 

We hope your Q has been addressed by our Post & marking the Post as resolved. If No, Feel free to Update the Post & we shall get back to you accordingly. The Action Plan shared below:

 

(I) Confirm Infra-Solr Service is installed on the concerned Cluster. The same should be installed already for Customer ideally.

 

(II) Connect to the Host wherein Infra-Solr Service is present & fetch the Infra-Solr Service Keytab. Next, List the Collection via Command (### solrctl collection --list) & List Configs via Command (### solrctl instancedir --list).

 

(III) Considering the Error received, the Command (### solrctl collection --list) wouldn't list any "ranger_audits" Collection. Yet, We expect the "ranger_audits" Config to be listed via Command (### solrctl instancedir --list).

 

(IV) Assuming the Command (### solrctl instancedir --list) shows "ranger_audits" & the Command (### solrctl collection --list) doesn't list "ranger_audits", Your team can create the Collection via Command (### solrctl collection --create ranger_audits -s 1 -r 1 -m 1 -c ranger_audits). Once performed, Run the Command (### solrctl collection --list), which should list the "ranger_audits" Collection.

 

(V) Refresh Ranger "Audits" UI & Confirm the Outcome. Your team may require a Restart of Ranger Admin Service after creating the "ranger_audits" Collection.

 

(VI) If Command (### solrctl instancedir --list) doesn't list "ranger_audits" from Step (IV), We need to upload the "ranger_audits" Config via solrctl Command. The "ranger_audits" ConfigSet can be found in Ranger Parcel Directory (Sample Path "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1029.28168653/lib/ranger-admin/contrib/solr_for_audit_setup/") & uploaded via Command (### solrctl config --upload ranger_audits <Path>). Once Uploaded, the Command (### solrctl instancedir --list) would list "ranger_audits", upon which your Team can create the Collection via Command (### solrctl collection --create ranger_audits -s 1 -r 1 -m 1 -c ranger_audits). Once performed, Run the Command (### solrctl collection --list), which should list the "ranger_audits" Collection.

 

All solrctl Commands are documented in [1] for your team's reference & should be run with Solr-KeyTab.

 

Regards, Smarak

 

[1] https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/search-solrctl-reference/topics/search-solrct...

View solution in original post

5 REPLIES 5

avatar
Super Collaborator

Hello @TouguiOmar 

 

Thanks for using Cloudera Community. Based on the Post, the "Audits" tab of Ranger UI shows "Collection Not Found: Ranger_Audits". The same is observed when the Collection isn't present in Solr. As such, Kindly follow the below steps:

 

(I) Confirm Infra-Solr Service is installed on the concerned Cluster. The same should be installed already for Customer ideally.

(II) Connect to the Host wherein Infra-Solr Service is present & fetch the Infra-Solr Service Keytab. Next, List the Collection via Command (### solrctl collection --list) & List Configs via Command (### solrctl instancedir --list).

(III) Considering the Error received, the Command (### solrctl collection --list) wouldn't list any "ranger_audits" Collection. Yet, We expect the "ranger_audits" Config to be listed via Command (### solrctl instancedir --list).

(IV) Assuming the Command (### solrctl instancedir --list) shows "ranger_audits" & the Command (### solrctl collection --list) doesn't list "ranger_audits", Your team can create the Collection via Command (### solrctl collection --create ranger_audits -s 1 -r 1 -m 1 -c ranger_audits). Once performed, Run the Command (### solrctl collection --list), which should list the "ranger_audits" Collection.

(V) Refresh Ranger "Audits" UI & Confirm the Outcome. Your team may require a Restart of Ranger Admin Service after creating the "ranger_audits" Collection.

(VI) If Command (### solrctl instancedir --list) doesn't list "ranger_audits" from Step (IV), We need to upload the "ranger_audits" Config via solrctl Command. The "ranger_audits" ConfigSet can be found in Ranger Parcel Directory & uploaded via Command (### solrctl config --upload ranger_audits <Path>).

 

All solrctl Commands are documented in [1] for your team's reference. Kindly review above & let us know the Outcome.

 

Regards, Smarak

 

[1] https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/search-solrctl-reference/topics/search-solrct...

 

avatar
Super Collaborator

Hello @TouguiOmar 

 

Kindly review & let us know if you have reviewed our Post dated 2022-11-07 & have any further queries concerning the queries around the Action Plan shared. 

 

Regards, Smarak

avatar
Super Collaborator

Hello @TouguiOmar,

 

We hope your Q has been addressed by our Post & marking the Post as resolved. If No, Feel free to Update the Post & we shall get back to you accordingly. The Action Plan shared below:

 

(I) Confirm Infra-Solr Service is installed on the concerned Cluster. The same should be installed already for Customer ideally.

 

(II) Connect to the Host wherein Infra-Solr Service is present & fetch the Infra-Solr Service Keytab. Next, List the Collection via Command (### solrctl collection --list) & List Configs via Command (### solrctl instancedir --list).

 

(III) Considering the Error received, the Command (### solrctl collection --list) wouldn't list any "ranger_audits" Collection. Yet, We expect the "ranger_audits" Config to be listed via Command (### solrctl instancedir --list).

 

(IV) Assuming the Command (### solrctl instancedir --list) shows "ranger_audits" & the Command (### solrctl collection --list) doesn't list "ranger_audits", Your team can create the Collection via Command (### solrctl collection --create ranger_audits -s 1 -r 1 -m 1 -c ranger_audits). Once performed, Run the Command (### solrctl collection --list), which should list the "ranger_audits" Collection.

 

(V) Refresh Ranger "Audits" UI & Confirm the Outcome. Your team may require a Restart of Ranger Admin Service after creating the "ranger_audits" Collection.

 

(VI) If Command (### solrctl instancedir --list) doesn't list "ranger_audits" from Step (IV), We need to upload the "ranger_audits" Config via solrctl Command. The "ranger_audits" ConfigSet can be found in Ranger Parcel Directory (Sample Path "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1029.28168653/lib/ranger-admin/contrib/solr_for_audit_setup/") & uploaded via Command (### solrctl config --upload ranger_audits <Path>). Once Uploaded, the Command (### solrctl instancedir --list) would list "ranger_audits", upon which your Team can create the Collection via Command (### solrctl collection --create ranger_audits -s 1 -r 1 -m 1 -c ranger_audits). Once performed, Run the Command (### solrctl collection --list), which should list the "ranger_audits" Collection.

 

All solrctl Commands are documented in [1] for your team's reference & should be run with Solr-KeyTab.

 

Regards, Smarak

 

[1] https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/search-solrctl-reference/topics/search-solrct...

avatar
New Contributor

Hi @smdas,

 

Sorry for the delayed replay.

 

Regarding the Command (### solrctl instancedir --list), I didn't found the "ranger_audits" config.

 

The following is the result of the command: 

 

_default
localFSTemplate
managedTemplate
managedTemplateSecure
schemalessTemplate
schemalessTemplateSecure 

 

Regards, Omar

avatar
Super Collaborator

Hello @TouguiOmar 

 

Update acknowledged. You may wish to use Step (VI) from above Action Plan & share the Outcome.

 

Regards, Smarak