You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2020/04/21 07:12:00 UTC

[jira] [Resolved] (FLINK-17264) taskmanager.sh could not work on Mac

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

Till Rohrmann resolved FLINK-17264.
-----------------------------------
    Resolution: Fixed

Fixed via 3ae1da0bed0f365057af8deed3055eba2853484a

> taskmanager.sh could not work on Mac
> ------------------------------------
>
>                 Key: FLINK-17264
>                 URL: https://issues.apache.org/jira/browse/FLINK-17264
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Scripts
>            Reporter: Yang Wang
>            Assignee: Yang Wang
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>
> Start a taskmanager on Mac via {{taskmanager.sh}} will get the following error.
> {code:java}
> wangyang-pc:build-target danrtsey.wy$ ./bin/taskmanager.sh start-foreground [ERROR] Unexpected result ( 1 lines): BASH_JAVA_UTILS_EXEC_RESULT:-Xmx536870902 -Xms536870902 -XX:MaxDirectMemorySize=268435458 -XX:MaxMetaspaceSize=268435456 [ERROR] extractExecutionParams only accepts exactly one line as the input [ERROR] Could not get JVM parameters properly.
> {code}
>  
> The root cause is FLINK-17023 introduce the following change and it could not work as expected.
> {code:java}
> local num_lines=$(echo "$execution_config" | wc -l)
> {code}
> On linux environment, the output is "1". However, on Mac, it is "      1". Maybe we need to add "tr -d '[:space:]' after wc".
>  
> cc [~TsReaper] 



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