I am trying to submit an oozie workflow (workflow.xml definition is present on hdfs) using the oozie server API against a Kerberized Cloudera.
I cannot submit an existing workflow using api due to auth/config issues.
I Took inspiration by the following article: https://blog.cloudera.com/blog/2013/06/how-to-use-the-apache-oozie-rest-api/
I am used to init a kerberos session (no issues here)
kinit -kt xxxxx -V yyyyy
and get info about all executing jobs (no issues here)
curl --negotiate -u foo:bar https://my.oozie.host:11443/oozie/v1/jobs?jobtype=wf
When executing the submit of a new job using
curl --negotiate -u foo:bar -X POST -H "Content-Type: application/xml" -d @config.xml https://my.oozie.host:11443/oozie/v1/jobs?action=start
I receive the message from oozie server
"This request requires HTTP authentication."
but I am using the standard way to use kerberos tickets (--negotiate -u xx:yy)
Do you have any suggestion for that? It seems that passing the parameter -H overrides the info about the kerberos ticket negotiation.
Any suggestion related to the solution is well accepted.
Thanks Robert