[
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
(v6.3.4#6332)