Support Questions

Find answers, ask questions, and share your expertise

YARN REST API for kerberos enabled cluster

Contributor

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

Contributor

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

Contributor

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

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

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

Contributor

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'