bloomberg / chef-bach

Chef recipes for Bloomberg's deployment of Hadoop and related components
Apache License 2.0
61 stars 66 forks source link

[jRuby] - Allow floating points in quotas #1281

Closed vt0r closed 6 years ago

vt0r commented 6 years ago

This is both a minor bug and a minor enhancement. If you pass a float to the script before this change, it does the equivalent of a .floor when doing .to_i. This ensures we can use simpler notation like 9.9T instead of 9900G. @ronny-macmaster is currently testing this on a hardware dev cluster. I'll mark it tested when he finishes.

macmaster commented 6 years ago

I tested this by overriding my personal user quota to 5.5T on a dev cluster. It worked like a charm.