Support Questions

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

YARN REST API for kerberos enabled cluster

avatar
Rising Star

Are there any extra settings needed for using YARN REST API in a kerberos enabled environment?

Trying to create a new application using below curl call gives HTTP/1.1 500 Internal Server Error. The same cluster without kerberos works fine.

Command used:

curl --negotiate -ikv -u: -X PUT 'http://<yarn host>l:8088/ws/v1/cluster/apps/new-application'

1 ACCEPTED SOLUTION

avatar
Rising Star

OK. need to use POST instead of PUT in the curl call and it works fine.

curl --negotiate -ikv -u: -X POST 'http://<yarn host>:8088/ws/v1/cluster/apps/new-application'

View solution in original post

4 REPLIES 4

avatar
Rising Star

To add more, the GET operation works fine for the kerberos cluster.

avatar
Master Guru

Internal server error? Can you look into the yarn logs and see what he complains about? You said it works fine without kerberos but perhaps you don't have the rights to kick off an application or something.

/var/log/hadoop-yarn/yarn/yarn-yarn-nodemanager-sandbox.hortonworks.com.log

avatar
Master Guru

Perhaps just a simple thing, can you try it with the -u : instead of -u: Below is my prefix I use for a webhdfs command.

curl --negotiate -u : -i -s -X PUT

avatar
Rising Star

OK. need to use POST instead of PUT in the curl call and it works fine.

curl --negotiate -ikv -u: -X POST 'http://<yarn host>:8088/ws/v1/cluster/apps/new-application'