You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yun Gao (Jira)" <ji...@apache.org> on 2022/04/13 06:28:05 UTC

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

     [ https://issues.apache.org/jira/browse/FLINK-19562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yun Gao updated FLINK-19562:
----------------------------
    Fix Version/s: 1.16.0

> 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: shizhengchao
>            Priority: Minor
>             Fix For: 1.15.0, 1.16.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.20.1#820001)