apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.3k stars 1.17k forks source link

[Bug] Visualis proxy user does not have permission to read dataset when executing widget #3254

Closed utopianet closed 2 years ago

utopianet commented 2 years ago

Search before asking

Linkis Component

linkis-commons

Steps to reproduce

Visualis uses the proxy user to execute the widget without permission to read the dataset 1、使用管理员用户创建工作空间,并添加非实名用户,以及实名用户adm,并赋予相应权限。 2、使用非实名用户创建项目、工作流,并拖拽SQL、WIDGET组件。 3、工作流设置使用代理用户adm执行。 4、WIDGET执行失败,提示用户hadoop无读取SQL数据集权限。

Expected behavior

Snipaste_2022-09-06_09-09-05 visualis.zip

Your environment

Anything else

No response

Are you willing to submit a PR?

github-actions[bot] commented 2 years ago

:blush: Welcome to the Apache Linkis (incubating) community!! We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

WeChat Group:

image Mailing Lists: name description Subscribe Unsubscribe archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive
peacewong commented 2 years ago

image When getting the result set, you should pass in the fs of the correct user so that there will be no permission problem, in com.webank.wedatasphere.dss.visualis.entrance.spark.LinkisClientExecutor.getResultSet