You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Zhengchao Shi (Jira)" <ji...@apache.org> on 2020/10/10 07:09:00 UTC

[jira] [Created] (FLINK-19562) the /flink/docs/docker/run.sh cause an error with numeric username

Zhengchao Shi created FLINK-19562:
-------------------------------------

             Summary: the /flink/docs/docker/run.sh cause an error with numeric username
                 Key: FLINK-19562
                 URL: https://issues.apache.org/jira/browse/FLINK-19562
             Project: Flink
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 1.11.2
            Reporter: Zhengchao Shi
             Fix For: 1.12.0


if the user of the OS is a number, run the script and report an error: 

{code:java}
groupadd: '002117' is not a valid group name
{code}

if the user of the OS is english, will be ok, like this:

{code:java}
if [ "$(uname -s)" == "Linux" ]; then
  USER_NAME=${SUDO_USER:=$USER}
  USER_ID=$(id -u "${USER_NAME}")
  GROUP_ID=$(id -g "${USER_NAME}")
else # boot2docker uid and gid
  USER_NAME='mwopr'
  USER_ID=1000
  GROUP_ID=50
fi
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)