问题
We are running NiFi 1.10 and have defined a Parameter Context. This has been assigned to a Processor Group, and a ListFTP processor has been added to our flow. In the parameter context, there is a parameter called ftp.password, which is set as a sensitive parameter and the password as its value. Then in the ListFTP processor, this parameter is referenced by #{ftp.password}. However, it does not seems to work as it seems to be unable to resolve the parameter. It fails to login to the FTP server, but if I put the password directly into the password field, omitting the use of a parameter value, it works.
Apart from these steps, is there anything else that needs to be done?
- Creating Parameter Context.
- Assigning Parameter Context to Processor Group.
- Creating a Parameter (ftp.password), sensitive is checked.
- Assigning Parameter to ListFTP's Password field: #{ftp.password}
P.S. Followed this document: https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#parameter-contexts
回答1:
Indeed. Devs are investigated about this and found the logic for some processors are different. See this. I think you already report this and got the reason for what is wrong.
It will be fixed in the next version.
来源:https://stackoverflow.com/questions/59088741/nifi-1-10-parameters-how-to-get-them-to-work