You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/03/29 04:20:19 UTC
[GitHub] [incubator-linkis] legendtkl opened a new issue #1818: [Bug] LabelCheckException when submit job with linkis-cli
legendtkl opened a new issue #1818:
URL: https://github.com/apache/incubator-linkis/issues/1818
### Search before asking
- [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
### Linkis Component
linkis-cg-client
### What happened + What you expected to happen
When submitting job using `linkis-cli` with the following command
```bash
linkis-cli -engineType shell-1 -codeType shell -code "echo \"hello\" " -submitUser root -proxyUser root
```
It report the following exception
```text
org.apache.linkis.httpclient.exception.HttpClientResultException: errCode: 10905 ,desc: URL /api/rest_j/v1/entrance/submit request failed! ResponseBody is {"method":null,"status":1,"message":"operation failed(操作失败)s!the reason(原因):LabelCheckException: errCode: 50080 ,desc: SubmitUser : must be the same as ExecuteUser : root , and user : root in userCbel.
```
The reason is that the `submitUser` label is omitted when do the http request to the Entrance.
### Relevent platform
Linkis Gateway
### Reproduction script
linkis-cli -engineType shell-1 -codeType shell -code "echo \"hello\" " -submitUser root -proxyUser root
### Anything else
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org
[GitHub] [incubator-linkis] peacewong closed issue #1818: [Bug] LabelCheckException when submit job with linkis-cli
Posted by GitBox <gi...@apache.org>.
peacewong closed issue #1818:
URL: https://github.com/apache/incubator-linkis/issues/1818
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org