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.

PutUDP with dynamic IP and Port

Highlighted

PutUDP with dynamic IP and Port

New Contributor

Hi everybody,

I need to design a flow who dynamicly send UDP message to severals devices on my netwrok.

Manpage of PutUDP indicate that it accept expression language to affect IP and Port, but impossible to do that.

Please can you confirm that it's possible ? perfect think would to be able to use attribute usd.sender and udp.port from a listenUDP node.

Many thanks for your help.

Cordialy,

Fabien

1 REPLY 1

Re: PutUDP with dynamic IP and Port

It only supports expression language from system properties and environment variables, but not from incoming flow files. This is because when the processor is started it will initialize a pool of UDP clients, so the port and host must be known before hand. It would probably be possible to make the UDP case more dynamic, but part of this issue is that PutUDP and PutTCP share a significant amount of underlying code.