Dear Pierre, Thanks for your swift reply. I created the parameter context and assigned it to the process group. I create a parameter as follows:
[cid:[email protected]] And when I reference it from ConsumeMQTT processor with ‘#{MQTT_BROKER}’ expression, I got the same “Broker URI is invalid because it is not valid URI syntax” error. As I read from the “Add Parameter” window, values do not support Expression Language ☹ As you suggested I will open a JIRA issue. Kind regards, [cid:[email protected]] Yildiray Kabak, PhD. Director of Engineering Phone: +90 (312) 210 1763 Fax: +90 (312) 210 1837 Email: [email protected] SRDC Corp. ODTU Teknokent Silikon Blok Kat:1 No:16 06800 Ankara, TURKEY www.srdc.com.tr From: Pierre Villard <[email protected]> Sent: Friday, April 9, 2021 11:33 AM To: [email protected] Subject: Re: ConsumeMQTT Processor Broker URI from environment variable... Hi, That's something we could easily add, feel free to open a JIRA issue for this improvement. You can also look at using parameters if that's an option for you. To reference a parameter that would be #{} instead of ${}. Thanks, Pierre Le ven. 9 avr. 2021 à 09:51, Yildiray Kabak <[email protected]<mailto:[email protected]>> a écrit : Dear all, I use the Nifi from the docker container and need to pass the “Broker URI” value from environment variable. For this purpose, I initialize the docker container with “MQTT_URL=tcp://localhost:1883” environment variable and reference it from the process configuration as follows: [cid:[email protected]] However, in this case, I receive the shown error notification “Broker URI is invalid because it is not valid URI syntax”. When I investigated more, I realized that “Expression language scope: Not Supported” for this property ☹ (This mechanism works for other processors like HandleHttpRequest or ConsumeKafka). How can I pass a value to this property from environment variables? Thanks in advance. Kind regards, [cid:[email protected]] Yildiray Kabak, PhD. Director of Engineering Phone: +90 (312) 210 1763 Fax: +90 (312) 210 1837 Email: [email protected]<mailto:[email protected]> SRDC Corp. ODTU Teknokent Silikon Blok Kat:1 No:16 06800 Ankara, TURKEY www.srdc.com.tr<http://www.srdc.com.tr>
