[ 
https://issues.apache.org/jira/browse/KNOX-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16687095#comment-16687095
 ] 

Kevin Risden commented on KNOX-1098:
------------------------------------

Well the attached patch breaks since we should only add the proxyUser for 
/sessions and /batches only. Adding it to /sessions/\{sessionId}/statements 
breaks with the following:
{code:java}
HTTP/1.1 400 Bad Request
Date: Wed, 14 Nov 2018 20:41:09 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 308
Server: Jetty(9.2.16.v20160414)

"Unrecognized field \"proxyUser\" (class org.apache.livy.ExecuteRequest), not 
marked as ignorable (3 known properties: \"msg_type\", \"kind\", \"code\"])\n 
at [Source: (org.eclipse.jetty.server.HttpInputOverHTTP); line: 1, column: 38] 
(through reference chain: org.apache.livy.ExecuteRequest[\"proxyUser\"])"
{code}
 

> Livy proxyUser should be added when not present
> -----------------------------------------------
>
>                 Key: KNOX-1098
>                 URL: https://issues.apache.org/jira/browse/KNOX-1098
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.14.0, 1.0.0, 1.1.0
>            Reporter: Jeffrey Rodriguez
>            Assignee: Kevin Risden
>            Priority: Major
>              Labels: livy
>             Fix For: 1.3.0
>
>         Attachments: KNOX-1098.patch
>
>
> Current Knox Livy service will replace the value pair proxyUser, user to 
> impersonate when running the job , with the value of the user that Knox has 
> authenticated. If the proxyUser value pair doesn't exist the rewrite rule 
> will not add the proxyUser value pair.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to