flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maximilian Michels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2810) Warn user if bc not installed
Date Fri, 02 Oct 2015 14:19:26 GMT

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

Maximilian Michels commented on FLINK-2810:

Yes, bash cannot perform floating point operations. {{bc}} is part of POSIX: http://www.unix.com/man-page/posix/1p/bc/
but not included in every distribution.

We only need {{bc}} in off-heap mode. Throwing a proper error when {{bc}} does not exist is
a good suggestion.

> Warn user if bc not installed
> -----------------------------
>                 Key: FLINK-2810
>                 URL: https://issues.apache.org/jira/browse/FLINK-2810
>             Project: Flink
>          Issue Type: Improvement
>          Components: Command-line client
>    Affects Versions: master
>            Reporter: Greg Hogan
>            Assignee: Greg Hogan
>            Priority: Minor
> taskmanager.sh will print the following message when starting the cluster if bc is not
installed and off-heap memory is enabled and configured as a ratio. The script should first
check that bc is installed and otherwise print a specific message.
> {noformat}
> [ERROR] Configured TaskManager managed memory fraction is not a valid value. Please set
taskmanager.memory.fraction in flink-conf.yaml
> {noformat}
> An example of a distribution where bc is not installed by default are the Debian images
for Google Compute Engine.

This message was sent by Atlassian JIRA

View raw message