Closed ChrisSamo632 closed 4 years ago
After #64 I've tried with setting other config via YAML while other parameters are set on the command line and it seems to work for those (for example, output_graphviz_format: png
in the YAML and --using-ssl
on the command line along with the certificate files).
So it might have just been the flags such as using_ssl
that was wrong, or I could have been doing something wrong previously with my YAML file.
If you can't reproduce this issue, happy for it to be closed.
I want to try it and see if I need to document a difference between the cli and the yaml, such as "if you set through the command line, just the flag is required, but in yaml you need to put true or false"
Describe the bug Due to #61, I attempted to specify
using_ssl: True
in aconfig.yaml
file along with other settings as command line parameters.To Reproduce Steps to reproduce the behavior:
using_ssl
field)dotifi
from the CLI/bash script and provide one or more parameters--verbose
mode; note thatusing_ssl: no
)Expected behavior Parameters from a config YAML and command line are combined (I guess you'd need to decide which take precedence, I'd maybe suggest those from the CLI?).
Desktop (please complete the following information):
Additional context Unfortunately,
dotifi
seems to either ignore the YAML (I checked the file reference I provided was correct and contained the contents I expected) or the ArgsParser defaults (indotifi.py
) are overriding the values from the YAML.Due to being hosted in Kubernetes, I don't necessarily know all of the settings I'd need to provide to dotifi until the Pod/container are started within the Kubernetes namespace, therefore at least some command line parameters seem necessary (#61 prevents my being able to specify all needed parameters as part of a bash script).
This leads to dotifi (via NiPyApi) attempting to connect to my
https
protected NiFi without SSL enabled:and ultimately: