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 19:16:00 UTC

[jira] [Created] (LIVY-592) Proxy user cannot view its session log

Zikun Xu created LIVY-592:
-----------------------------

             Summary: 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


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)