Skip to main content
tejan08
Silver ⭐️⭐️
Apr 10, 2025 7:26 AM UTC
Solved

Unable to Find API for Creating Ranger Plugin Audit Directory HBase

I am trying to create a Ranger plugin audit directory on HBase programmatically using an API. However, I couldn't find any relevant API or documentation that explains how to achieve this.

upadhyayk04
Gold ⭐️⭐️⭐️
Apr 15, 2025 12:22 PM UTC

Hello @tejan08 

Thank you for reaching out to community

I did not find the exact API for this but you can have a look at the below API it will prepare all the new services

On CM UI >> Support >> API Explorer and the below API's

POST​/clusters​/{clusterName}​/commands​/firstRun

 
Give it a try and let me know if that helps else we can manually create that directory in hdfs as well
 
 

3 replies

DianaTorres
Community Manager
Community Manager
Apr 10, 2025 3:08 PM UTC

@tejan08 Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our HBase experts @aquilodran @pajoshi @Anandh_S  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Apr 15, 2025 12:22 PM UTC

Hello @tejan08 

Thank you for reaching out to community

I did not find the exact API for this but you can have a look at the below API it will prepare all the new services

On CM UI >> Support >> API Explorer and the below API's

POST​/clusters​/{clusterName}​/commands​/firstRun

 
Give it a try and let me know if that helps else we can manually create that directory in hdfs as well
 
 
Translate
tejan08
tejan08Author
Silver ⭐️⭐️
Apr 16, 2025 2:54 PM UTC

Hello @upadhyayk04 
As the API was not found in API explorer so, I did some testing and found out this
POST​/clusters​/{clusterName}​/services/commands​/RangerPluginCreateAuditDir

 

Translate