Support Questions

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

Resource manager api not working to get running jobs

avatar
Contributor

Hi Team,

 

We are trying to execute RM API but its failing. with unauthorize access

We have Kerberos and TLS 

 

API :
curl -X GET "https://master-servere.com:8090/ws/v43/cluster/apps/new-application" -H "accept: application/json" -k -v -u admin

 

HTTP/1.1 401 Unauthorized
< Pragma: no-cache
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< WWW-Authenticate: Negotiate
< Set-Cookie: hadoop.auth=; Path=/; Secure; HttpOnly
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Type: application/json
< Content-Length: 164
<
{
"servlet":"org.eclipse.jetty.servlet.DefaultServlet-73eb8672",
"message":"Authentication required",
"url":"/ws/v43/cluster/apps/new-application",
"status":"401"
* Connection #0 to host master-servere.com left intact

 

2 REPLIES 2

avatar
Contributor

arunek95 can you please suggest on this ?

avatar
Rising Star

In case you have a valid kerberos ticket, kindly use --negotiate and submit again.

H!nt curl -X GET "https://master-servere.com:8090/ws/v43/cluster/apps/new-application" -H "accept: application/json" -k -v --negotiate -u admin

 

You may check for a valid Kerberos ticket using #klist