Created 11-07-2018 02:56 AM
How can I access livy sever using curl command? When I try curl hostaname:8998, it is throwing 401 error
I created the ticket and tried using userID livy and having same issue
Created 11-07-2018 03:26 AM
Can you please share the output of the following command to see if there is a valid Kerberos ticket?
# klist
.
Also please share the exact command which you are using ? Is it somethink like mentioned in the SupportKB https://community.hortonworks.com/content/supportkb/210571/how-to-submit-spark-job-using-livy-rest-a...
# curl -iv -X POST --negotiate -u:<any-user> --data '{"file": "/tmp/spark-client/lib/spark-examples.jar", "className": "org.apache.spark.examples.SparkPi", "args": ["100"]}' -H "Content-Type: application/json" node1.localdomain:8998/batches
.
Can you please post the complete stacktrace of the error which you are getting ?
Created 11-07-2018 03:26 AM
Can you please share the output of the following command to see if there is a valid Kerberos ticket?
# klist
.
Also please share the exact command which you are using ? Is it somethink like mentioned in the SupportKB https://community.hortonworks.com/content/supportkb/210571/how-to-submit-spark-job-using-livy-rest-a...
# curl -iv -X POST --negotiate -u:<any-user> --data '{"file": "/tmp/spark-client/lib/spark-examples.jar", "className": "org.apache.spark.examples.SparkPi", "args": ["100"]}' -H "Content-Type: application/json" node1.localdomain:8998/batches
.
Can you please post the complete stacktrace of the error which you are getting ?
Created 11-13-2018 07:59 PM
thanks, it works.