livy curl request error for Kerberos Cloudera Hadoop livy curl request error for Kerberos Cloudera Hadoop hadoop hadoop

livy curl request error for Kerberos Cloudera Hadoop


This error indicates that your kerberos ticket most likely doesn't exist or expired.

Have you run kinit to create your kerberos ticket?


For Testing purpose, Can you kinit as hdfs user using (you can find the keytab under HDFS roles machine - Namenode, Datanode /var/run/cloudera-scm-agent/process/hdfs/hdfs.keytab)

kinit -kt hdfs.keytab hdfs/hostname@REALM

or kinit as your user kinit user@REALM

And then try

curl --negotiate -u : -X GET -H "Content-Type: application/json" http://xxxx.xxxx:8998/sessions

In order to find pyspark sessions,

curl --negotiate -u : -X POST --data '{"kind": "pyspark"}' -H "Content-Type: application/json" http://xxxxx:8998/sessions