-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using yamlencode() to define flink-conf.yaml might be broken #13
Comments
Numbers are the tricky bit, but usually yamlencode just passes these through - so The other option is to switch to jsonencode, because json is a subset of YAML and anything that accepts yaml should accept JSON (with the exception of the presence of hard tabs). This is actually generally what I do, because JSON isn't space significant while YAML is. |
I believe I've verified this while testing restart strategies. Whereas if I pass the config through the recipe's config.py I get If I pass both, both appear in the config, which may also indicate they are not equivalent. I'll report more examples as I come across them, but I'm feeling confident that our terraform-flink-config is broken! |
Also checking the job manager logs, all the quoted parameters appear red. Unclear what red indicates, but I would guess an error (color not shown).
|
#6 may close this. (...maybe not, did another pull and I see this branch moved back to yamlencode) |
I'm starting to suspect that the output of
yamlencode()
toflink-conf.yaml
is not being parsed correctly.When I look at the logs, values set my
yamlencode()
appear as:"number": "12345"
whereas other values appear as
number: 12345
In fact, both values can occur in the same deployment, which make me think they aren't equivalent.
The text was updated successfully, but these errors were encountered: