[ 
https://issues.apache.org/jira/browse/FLINK-38587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066512#comment-18066512
 ] 

陈哲凯 commented on FLINK-38587:
-----------------------------

Hi, I've submitted a PR for this issue:
  https://github.com/apache/flink-docker/pull/247

  Let me know if you have any feedback.thanks

> docker entrypoint script cannot handle FLINK_PROPERTIES that include spaces
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-38587
>                 URL: https://issues.apache.org/jira/browse/FLINK-38587
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 1.20.3
>            Reporter: Jacob Jona Fahlenkamp
>            Priority: Minor
>         Attachments: docker-compose.yml
>
>
> Steps to reproduce:
> 1. Download the file [^docker-compose.yml]
> 2. Run with
> {code:java}
> docker compose up{code}
> 3. In the output you can see the whitespaces have been stripped from the 
> options.
> {code:java}
> jobmanager-1   | WARNING: Unknown module: ALL-UNNAMED--enable-preview 
> specified to --add-opens {code}
> Cause:
> The following entrypoint script removes all spaces in each line. Probably the 
> intention was just to strip the spaces from the start and beginning of the 
> line. It happens in this line: 
> [https://github.com/apache/flink-docker/blob/master/1.20/scala_2.12-java17-ubuntu/docker-entrypoint.sh#L111C11-L111C47]
> Potential solution:
> Replace the line
> {code:java}
> prop=$(echo $prop | tr -d '[:space:]') {code}
> with the following:
> {code:java}
> prop=$(echo "$prop" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'){code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to