Member since
07-09-2021
2
Posts
0
Kudos Received
0
Solutions
07-09-2021
07:26 AM
I am trying to execute a workflow using rest API, but could not proceed due to authentication error: Sample: POST : https://xxxxxxxhostxxxxxxxxx:port/oozie/v2/jobs?action=start Content-Type : application/xml Request Payload: <configuration> <property> <name>oozie.wf.application.path</name> <value>hdfs://XXXXXXXXXXXXXXXXXXXXXXX</value> </property> <property> <name>oozie.use.system.libpath</name> <value>True</value> </property> <property> <name>user.name</name> <value>XXXXXXXXXXXXXXXXXx</value> </property> <property> <name>jobTracker</name> <value>yarnRM</value> </property> <property> <name>mapreduce.job.user.name</name> <value>XXXXXXXXXXXXXXXX</value> </property> <property> <name>nameNode</name> <value>hdfs://XXXXXXXXXXX</value> </property> </configuration> response: { "errorMessage": "Authentication required", "httpStatusCode": 401 } Headers: { Date: Wed, 07 Jul 2021 06:33:50 GMT Strict-Transport-Security: max-age=31536000 WWW-Authenticate: Negotiate Set-Cookie: hadoop.auth=; Path=/; Secure; HttpOnly Content-Type: application/json; charset="UTF-8" Content-Length: 63 } {"errorMessage":"Authentication required","httpStatusCode":401} Tried with Basic Auth, NTLM , No Auth and Digest auth.
... View more
Labels: