Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issue in making Livy REST Api call in a kerberized cluster, from a remote machine

Highlighted

Issue in making Livy REST Api call in a kerberized cluster, from a remote machine

Super Collaborator

We have a kerberized 4 node cluster. We are not able to call Livy Api from a remote windows machine.

Command to make the API call
curl --negotiate -u : -X GET -H "Content-Type: application/json" "http://******:8999/sessions?from=1&size=1"

Response
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 403 </title>
</head>
<body>
<h2>HTTP ERROR: 403</h2>
<p>Problem accessing /sessions. Reason:
<pre> java.lang.IllegalArgumentException</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>

-Same curl command works successfully from any of the cluster machines after getting a kerberos ticket.
-Windows machine is not part of the realm.
-I am using the same keytab file to get the kerberso ticket on windows machine which I use on cluster machine.
-I suspect that the curl command is not sending the correct user to authenticate.

Please let us know if why more information is needed.
Appreciate any help.