You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Zikun Xu (JIRA)" <ji...@apache.org> on 2019/04/30 20:19:00 UTC

[jira] [Issue Comment Deleted] (LIVY-592) Proxy user cannot view its session log

     [ https://issues.apache.org/jira/browse/LIVY-592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zikun Xu updated LIVY-592:
--------------------------
    Comment: was deleted

(was: A pull request is sent

[https://github.com/apache/incubator-livy/pull/172])

> Proxy user cannot view its session log
> --------------------------------------
>
>                 Key: LIVY-592
>                 URL: https://issues.apache.org/jira/browse/LIVY-592
>             Project: Livy
>          Issue Type: Bug
>          Components: Server
>         Environment: Docker running on Kubernetes
>            Reporter: Zikun Xu
>            Priority: Minor
>
> Here is how to reproduce the issue.
> --------------------------------------------------------------------------------------------
> root@storage-0-0:~# kinit admin
> Password for [admin@AZDATA.LOCAL|mailto:admin@AZDATA.LOCAL]:
> Warning: Your password will expire in 41 days on Tue Jun 11 08:35:19 2019
> root@storage-0-0:~#
> root@storage-0-0:~# curl -k -X POST --negotiate -u : --data '\{"kind": "pyspark", "proxyUser": "admin"}' -H "Content-Type: application/json" 'https://gateway-0.azdata.local:8443/gateway/default/livy/v1/sessions'
> {"id":0,"name":null,"appId":null,"owner":"knox","proxyUser":"admin","state":"starting","kind":"pyspark","appInfo":\{"driverLogUrl":null,"sparkUiUrl":null},"log":[]}
>  
> root@storage-0-0:~# curl -k --negotiate -u : 'https://gateway-0.azdata.local:8443/gateway/default/livy/v1/sessions'
> {"from":0,"total":2,"sessions":[{"id":0,"name":null,"appId":"application_1556613676830_0001","owner":"knox","proxyUser":"admin","state":"starting","kind":"pyspark","appInfo":{"driverLogUrl":"[http://storage-0-0.storage-0-svc.test.svc.cluster.local:8042/node/containerlogs/container_1556613676830_0001_01_000001/admin]","sparkUiUrl":"[http://master-0.azdata.local:8088/proxy/application_1556613676830_0001/]"},"log":[]},\{"id":1,"name":null,"appId":null,"owner":"knox","proxyUser":"bob","state":"starting","kind":"pyspark","appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":[]}]}
> --------------------------------------------------------------------------------------------
> From the result, you can see that the user admin can not view the log of its own session. 



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