You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (Jira)" <ji...@apache.org> on 2020/12/08 06:40:09 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 ]
Robert Metzger updated FLINK-19562:
-----------------------------------
Fix Version/s: (was: 1.12.0)
1.13.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.13.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)