You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/04/22 13:05:17 UTC
[GitHub] [dolphinscheduler] Guanpx opened a new issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Guanpx opened a new issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359
**Which version of DolphinScheduler:**
-[1.3.x]
**Additional context**
Tenant Manage > Tenant Code > new Tenant that code was 1
When that Tenant run task , Exception :
```
[INFO] 2021-04-22 20:25:53.876 - [taskAppId=TASK-3-11-12]:[115] - create linux os user : 1
[INFO] 2021-04-22 20:25:53.876 - [taskAppId=TASK-3-11-12]:[115] - execute cmd : sudo useradd -g dolphinscheduler
1
[ERROR] 2021-04-22 20:25:53.949 - [taskAppId=TASK-3-11-12]:[105] - useradd: invalid user name '1'
org.apache.dolphinscheduler.common.shell.AbstractShell$ExitCodeException: useradd: invalid user name '1'
at org.apache.dolphinscheduler.common.shell.AbstractShell.runCommand(AbstractShell.java:209)
at org.apache.dolphinscheduler.common.shell.AbstractShell.run(AbstractShell.java:124)
at org.apache.dolphinscheduler.common.shell.ShellExecutor.execute(ShellExecutor.java:127)
at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:104)
at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:87)
at org.apache.dolphinscheduler.common.utils.OSUtils.exeShell(OSUtils.java:395)
at org.apache.dolphinscheduler.common.utils.OSUtils.exeCmd(OSUtils.java:385)
at org.apache.dolphinscheduler.common.utils.OSUtils.createLinuxUser(OSUtils.java:290)
at org.apache.dolphinscheduler.common.utils.OSUtils.createUser(OSUtils.java:264)
at org.apache.dolphinscheduler.common.utils.FileUtils.createWorkDirAndUserIfAbsent(FileUtils.java:175)
at org.apache.dolphinscheduler.server.worker.processor.TaskExecuteProcessor.process(TaskExecuteProcessor.java:139)
at org.apache.dolphinscheduler.remote.handler.NettyServerHandler$1.run(NettyServerHandler.java:128)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
```
**Requirement or improvement**
- declaration Tenant CODE was not begin with number !!!!
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen closed issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Posted by GitBox <gi...@apache.org>.
chengshiwen closed issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen commented on issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359#issuecomment-825411415
@Guanpx Duplicated with issue #5092, and it has been solved by #5093
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen edited a comment on issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359#issuecomment-825411415
@Guanpx Duplicated with issue #4383, and it has been solved by #5093
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] Guanpx commented on issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Posted by GitBox <gi...@apache.org>.
Guanpx commented on issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359#issuecomment-825440540
fine, thx
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359#issuecomment-824824145
Hi:
* Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
* If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/zh-cn/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] dailidong commented on issue #5359: [Question] Tenant Code set number that will AbstractShell$ExitCodeException
Posted by GitBox <gi...@apache.org>.
dailidong commented on issue #5359:
URL: https://github.com/apache/dolphinscheduler/issues/5359#issuecomment-824858935
> **Which version of DolphinScheduler:**
> -[1.3.x]
>
> **Additional context**
> Tenant Manage > Tenant Code > new Tenant that code was 1
> When that Tenant run task , Exception :
>
> ```
> [INFO] 2021-04-22 20:25:53.876 - [taskAppId=TASK-3-11-12]:[115] - create linux os user : 1
> [INFO] 2021-04-22 20:25:53.876 - [taskAppId=TASK-3-11-12]:[115] - execute cmd : sudo useradd -g dolphinscheduler
> 1
> [ERROR] 2021-04-22 20:25:53.949 - [taskAppId=TASK-3-11-12]:[105] - useradd: invalid user name '1'
>
> org.apache.dolphinscheduler.common.shell.AbstractShell$ExitCodeException: useradd: invalid user name '1'
>
> at org.apache.dolphinscheduler.common.shell.AbstractShell.runCommand(AbstractShell.java:209)
> at org.apache.dolphinscheduler.common.shell.AbstractShell.run(AbstractShell.java:124)
> at org.apache.dolphinscheduler.common.shell.ShellExecutor.execute(ShellExecutor.java:127)
> at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:104)
> at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:87)
> at org.apache.dolphinscheduler.common.utils.OSUtils.exeShell(OSUtils.java:395)
> at org.apache.dolphinscheduler.common.utils.OSUtils.exeCmd(OSUtils.java:385)
> at org.apache.dolphinscheduler.common.utils.OSUtils.createLinuxUser(OSUtils.java:290)
> at org.apache.dolphinscheduler.common.utils.OSUtils.createUser(OSUtils.java:264)
> at org.apache.dolphinscheduler.common.utils.FileUtils.createWorkDirAndUserIfAbsent(FileUtils.java:175)
> at org.apache.dolphinscheduler.server.worker.processor.TaskExecuteProcessor.process(TaskExecuteProcessor.java:139)
> at org.apache.dolphinscheduler.remote.handler.NettyServerHandler$1.run(NettyServerHandler.java:128)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ```
>
> **Requirement or improvement**
>
> * declaration Tenant CODE was not begin with number !!!!
good job!
Could you submit a PR to solve this issue? I think it's not difficult, Please contact me(lidongdai@apache.org) if you have any question
if you want to solve this question , please leave message, I will assign this issue to you, thx
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org