Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NiFi Expression language support for port number in ListenTCP, ListenUDP

Solved Go to solution
Highlighted

NiFi Expression language support for port number in ListenTCP, ListenUDP

Contributor

40626-nifierror-11.png

Hi All,

I have a ListenTCP processor, I was able to use NiFi expression language for Local interface name but not for port number, it said Expression language support False, is there anyway I can read port number from a custom properties file

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: NiFi Expression language support for port number in ListenTCP, ListenUDP

Master Guru

@dhieru singh

Only processor properties that explicitly state that they support NiFi Expression Language will allow you to set variables. The "Port" property requires that a hard coded integer value is supplied.

There is work being done to expand the capability of the NiFi variable registry. That work will expand what processor properties support EL. I recommend opening an Apache Jira requesting that the "Port" properties add support for NiFi expression language.

Until then, there is no workaround. The value must be supplied directly in the processor.

Thanks,

Matt

2 REPLIES 2

Re: NiFi Expression language support for port number in ListenTCP, ListenUDP

Master Guru

@dhieru singh

Only processor properties that explicitly state that they support NiFi Expression Language will allow you to set variables. The "Port" property requires that a hard coded integer value is supplied.

There is work being done to expand the capability of the NiFi variable registry. That work will expand what processor properties support EL. I recommend opening an Apache Jira requesting that the "Port" properties add support for NiFi expression language.

Until then, there is no workaround. The value must be supplied directly in the processor.

Thanks,

Matt

Re: NiFi Expression language support for port number in ListenTCP, ListenUDP

Contributor

@Matt Clarke Thanks for the quick response,I would raise the JIRA request, here is the enhancement request

https://issues.apache.org/jira/browse/NIFI-4458

Don't have an account?
Coming from Hortonworks? Activate your account here