haydenzhourepo opened a new issue #5065:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/5065


   **For better global communication, Please describe it in English. If you 
feel the description in English is not clear, then you can append description 
in Chinese(just for Mandarin(CN)), thx! **
   **Describe the bug**
   I have deployed dolphinscheduler on k8s with helm, and I run a flink job , 
but got the message[ useradd: invalid user name '10000' ]
   
   below is the full log:
   ```
   [INFO] 2021-03-16 17:21:13.843  - [taskAppId=TASK-1-1-1]:[115] - create dir 
success /tmp/dolphinscheduler/exec/process/1/1/1/1
   [INFO] 2021-03-16 17:21:13.853  - [taskAppId=TASK-1-1-1]:[115] - create 
linux os user : 10000
   [INFO] 2021-03-16 17:21:13.854  - [taskAppId=TASK-1-1-1]:[115] - execute cmd 
: sudo useradd -g root 10000
   [ERROR] 2021-03-16 17:21:13.859  - [taskAppId=TASK-1-1-1]:[105] - useradd: 
invalid user name '10000'
   
   org.apache.dolphinscheduler.common.shell.AbstractShell$ExitCodeException: 
useradd: invalid user name '10000'
   
        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)
   [INFO] 2021-03-16 17:21:13.860  - [taskAppId=TASK-1-1-1]:[115] - create user 
name fail 10000
   
   ```
   
   **To Reproduce**
   1.  deploy by helm on k8s
   2. upload flink jar
   3. create a workflow
   4. run flink workflow
   
   **Expected behavior**
   flink job run normaly
   
   **Screenshots**
   
![image](https://user-images.githubusercontent.com/21101605/111286330-0baf3d80-867d-11eb-8812-77788b320724.png)
   
   
   
   **Which version of Dolphin Scheduler:**
    -dockerimage:  apache/dolphinscheduler:latest
   
   
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to