Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Cloudera Manager Rest API Authentication using Kerberos Authentication?

avatar
Contributor

I am trying to use kerberos authentication to hit a CM REST API endpoint. It keeps responding back with 401 Unauthorized and all the examples I have seen uses basic auth. 


Does anyone know if this possible and give an example of how it could be done?

2 REPLIES 2

avatar
Expert Contributor

HI @drewski7 , Can you please help us with the API you have used and the failure logs as well to check. 

avatar
Contributor

Dear @drewski7 please use this api to get the result. 

 

curl -X POST "https://dev-cm.sever.com:7183/api/v43/clusters/cluster-name/services/service/commands/restart" -H "accept: application/json" -k -u admin:pssword

replace api v43 version with ur version and cluster name. if you dont have tls change 7183 with 7180 and remove -k option