[
https://issues.apache.org/jira/browse/KNOX-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779268#comment-13779268
]
Dilli Arumugam commented on KNOX-159:
-------------------------------------
Possible root cause:
See the snippet below from gateway console.
Please pay attention to the last line of the snippet.
Knox is sending Host: localhost:8443
I think this causes a problem.
Oozie tries to handle URL as
http://localhost:8443/oozie/v1/job?doAs=guest&action=start and reports - The
request sent by the client was syntactically incorrect.
13/09/26 14:08:01 DEBUG http.wire: >> "Authorization: Negotiate
YIIEtQYGKwYBBQUCoIIEqTCCBKWgDTALBgkqhkiG9xIBAgKhBAMCAfaiggSMBIIEiGCCBIQGCSqGSIb3EgECAgEAboIEczCCBG+gAwIBBaEDAgEOogcDBQAgAAAAo4IBPmGCATowggE2oAMCAQWhDRsLRVhBTVBMRS5DT02iKjAooAMCAQChITAfGwRIVFRQGxdjNjQwMS5hbWJhcmkuYXBhY2hlLm9yZ6OB8zCB8KADAgESoQMCAQSigeMEgeAw5dK2NsqsKn6/j9RDk9R9gkKcQKw+z+0k++zQQzNi2/6mZDfFW95fF7NJmQx5n3B6QLlyshvMcK+uKvz5fBXusro6YygmprMoRYiF4v8g3Y6GOrPl62vfYlNaeZSUDGnbZUsF4KCjo/JWH3Qzd/5YRO9mwEtTB/CE1ov1AYRsNJBBswJLrlV2a6EJgaAesjM0pLCHGcTG/bCWUdm29zE/+F1R9een+UQ15qtXXCLrZ8KceOb0ELgizgX29RAKoKl/jDpo+vTYjgBxH4Aekrvjl/XiI2ToxGeUwhtUsUuykaSCAxYwggMSoAMCARGiggMJBIIDBVmAJaxKc8+Hkjy2O1ykX6ksiAY2tckOOErgjPswanhEptXkNO1LZ0TusjZT4E1hBA2opvkTMn4eTWvkEzutUkE7Eu4Qbzy1jbbIT4F+z/c4E1xiOyxS+LPz7ERlakO4hEBhePAFKMYgSv/xJtRS9py7yVKqzLQcTSntdtGiUAenHWCi+cgoKCjJwtkqgt5QUIz8G4SIlCP77IEADxvesHQqDxtT/nwJfqiabOH2Dow4GvIHiwucMwMmaqgOUwnctGCjPO7ehjwdAZh5iMKoZnoyMai3DREs3il/le78K3GdctrG6oO54PnqfeK1D4WeQQMC+0jnDa5YH6obznkeyTE+e9bppY/6SGMgo8mie1GEvywb6erHF5V/2vSIiNDXx0+9vFuWk5g9dmu+Zw5NYp43XZx90LlPh6AKNparJoZao85Th1O7B/cJy/15F1qrfKm8R64lKog2CaKtHtcEoMYaSom3wZ9Ew33JPjPzNhdR9acM2/1O8ZDbeK/ZZoMrH0HrzCHYz5SJPU+kOYHnSq1uf8dTxwtpzq5HZzKzTpMZmqPCjvOyDDGFdzneSjT64SzBz9400rVw6lE0W2NXziuB7gBOsymNPKg7IfvlhPhfsCr3gQ+tRayg6BZaXMJHSAiVS6NA/iK2QuY8yQCE5p9Cu++Fl7WZOBAafQHsuV5g7a35+JZ22n40wzcUqBnSoImfHoheiN8YCww24tg18WmKtivHulpgBZfUDuhzEpwFfyZ6jfFB4X/MfQcCPD866R0INUHpcmjTrJp4tqJCrFCht1L3zKl7u/6EqGvXoIO2ZW2SXq+jD2UQIBTpM0bBRK8E0uig6NLnK20xW+LM+TcwFevlTFg992U9Ss3Gbz1G626sNktczV/PQ4mqrd0gS/rDa0XKqAoC1U1YL3RFavRYaOxINLcYaYDFcXe8tgFW8UGEdeAQs8ac9D415wlsXopVrXdimXZ352XGVpTnd2s3DcbAL1PslK853unFpqz1WHJMaRXWoGo2h8HKettGewoynLBo[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: >> "[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "HTTP/1.1 200 OK[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "Server: Apache-Coyote/1.1[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "WWW-Authenticate: Negotiate
oYH1MIHyoAMKAQChCwYJKoZIhvcSAQICom4EbGBqBgkqhkiG9xIBAgICAG9bMFmgAwIBBaEDAgEPok0wS6ADAgERokQEQo04BKBOuBA7onAwR0xI+CQcowy1qwz5dQdEC6dnp/C+aITO4WwIh4rvXH21n71EssA5fhmwb8QJKixBSHLIcPrFt6NuBGxgagYJKoZIhvcSAQICAgBvWzBZoAMCAQWhAwIBD6JNMEugAwIBEaJEBEKNOASgTrgQO6JwMEdMSPgkHKMMtasM+XUHRAunZ6fwvmiEzuFsCIeK71x9tZ+9RLLAOX4ZsG/ECSosQUhyyHD6xbc=[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "Set-Cookie:
hadoop.auth="u=knox&p=knox/[email protected]&t=kerberos&e=1380265656173&s=zFFUH3gcpIpMvDmRnBmFByy4Nlk=";
Version=1; Path=/[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "Allow: TRACE, OPTIONS[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "Content-Length: 0[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "Date: Thu, 26 Sep 2013 21:07:35
GMT[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: << "[\r][\n]"
13/09/26 14:08:01 INFO hadoop.gateway: Successful Knox->Hadoop SPNegotiation
authentication for URL:
http://c6401.ambari.apache.org:11000/oozie/v1/job?doAs=guest&action=start
13/09/26 14:08:01 DEBUG http.wire: >> "POST
/oozie/v1/job?doAs=guest&action=start HTTP/1.1[\r][\n]"
13/09/26 14:08:01 DEBUG http.wire: >> "Host: localhost:8443[\r][\n]"
> oozie job submission thorugh knox fails for secure cluster
> ----------------------------------------------------------
>
> Key: KNOX-159
> URL: https://issues.apache.org/jira/browse/KNOX-159
> Project: Apache Knox
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Dilli Arumugam
> Assignee: Dilli Arumugam
> Fix For: 0.3.0
>
>
> Oozie job submission thorugh knox fails for secure cluster
> See curl session snippets
> curl -i -k -u guest:guest-password -T workflow-configuration.xml -H
> Content-Type:application/xml -X POST
> https://localhost:8443/gateway/sandbox/oozie/v1/job?action=start
> HTTP/1.1 100 Continue
> HTTP/1.1 400 Bad Request
> Set-Cookie: JSESSIONID=13rjfidkhz4zoqher4rrwdks7;Path=/gateway/sandbox;Secure
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Server: Apache-Coyote/1.1
> oozie-error-code: E0301
> oozie-error-message: E0301: Invalid resource []
> Date: Wed, 25 Sep 2013 18:45:05 GMT
> Content-Type: text/html;charset=UTF-8
> Connection: close
> <html><head><title>Apache Tomcat/6.0.36 - Error report</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
> </head><body><h1>HTTP Status 400 - </h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
> <u></u></p><p><b>description</b> <u>The request sent by the client was
> syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/6.0.36<
> Snippet from oozie.log
> 2013-09-25 18:45:05,574 WARN V1JobServlet:542 - USER[-] GROUP[-] TOKEN[-]
> APP[-] JOB[-] ACTION[-] URL[POST
> http://localhost:8443/oozie/v1/job?doAs=guest&action=start] error[E0301],
> E0301: Invalid resource []
> org.apache.oozie.servlet.XServletException: E0301: Invalid resource []
> at
> org.apache.oozie.servlet.JsonRestServlet.validateRestUrl(JsonRestServlet.java:416)
> at
> org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:276)
> Please note that Oozie job submission succeeds without Knox in the path.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira