You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by BD International <b....@gmail.com> on 2017/01/25 19:08:13 UTC
Dynamically set the RabbitMQ routing key
Hello,
I am currently using nifi 1.0.0 to collect a number or different xml data
types and publishing them onto rabbitmq.
What I would like to do is dynamically set the rabbitmq routing key based
on a field within the data but at the moment i can only set the rabbitmq
routing key at configuration time.
Can anyone suggest any how i could go about doing this?
Ideally i would like be able to use the nifi expression language to set the
routing key and exchange for the publishamqp processor.
Thanks
Brian
Re: Dynamically set the RabbitMQ routing key
Posted by BD International <b....@gmail.com>.
All,
NIFI-3223 has been raised.
Thanks
Brian
On 25 Jan 2017 19:17, "Andy LoPresto" <al...@apache.org> wrote:
> Brian,
>
> I don’t see a reason why this field could not support Expression Language.
> Please file a Jira requesting this feature [1].
>
> [1] https://issues.apache.org/jira/browse/NIFI
>
>
> Andy LoPresto
> alopresto@apache.org
> *alopresto.apache@gmail.com <al...@gmail.com>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69
>
> On Jan 25, 2017, at 11:08 AM, BD International <
> b.deep.international@gmail.com> wrote:
>
> Hello,
>
> I am currently using nifi 1.0.0 to collect a number or different xml data
> types and publishing them onto rabbitmq.
>
> What I would like to do is dynamically set the rabbitmq routing key based
> on a field within the data but at the moment i can only set the rabbitmq
> routing key at configuration time.
>
> Can anyone suggest any how i could go about doing this?
>
> Ideally i would like be able to use the nifi expression language to set
> the routing key and exchange for the publishamqp processor.
>
> Thanks
>
> Brian
>
>
>
Re: Dynamically set the RabbitMQ routing key
Posted by Andy LoPresto <al...@apache.org>.
Brian,
I don’t see a reason why this field could not support Expression Language. Please file a Jira requesting this feature [1].
[1] https://issues.apache.org/jira/browse/NIFI <https://issues.apache.org/jira/browse/NIFI>
Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69
> On Jan 25, 2017, at 11:08 AM, BD International <b....@gmail.com> wrote:
>
> Hello,
>
> I am currently using nifi 1.0.0 to collect a number or different xml data types and publishing them onto rabbitmq.
>
> What I would like to do is dynamically set the rabbitmq routing key based on a field within the data but at the moment i can only set the rabbitmq routing key at configuration time.
>
> Can anyone suggest any how i could go about doing this?
>
> Ideally i would like be able to use the nifi expression language to set the routing key and exchange for the publishamqp processor.
>
> Thanks
>
> Brian
Re: Dynamically set the RabbitMQ routing key
Posted by Oleg Zhurakousky <oz...@hortonworks.com>.
Brian
You are correct, at the moment it is somewhat static doe to the fact that for the routing key the ‘expressionLanguageSupported’ defaults to false. We can definitely make that change which would allow you to use NiFi Expression Language to make it dynamic.
Please raise a JIRA ticket - https://issues.apache.org/jira/browse/NIFI, so we can take care of it.
Cheers
Oleg
On Jan 25, 2017, at 2:08 PM, BD International <b....@gmail.com>> wrote:
Hello,
I am currently using nifi 1.0.0 to collect a number or different xml data types and publishing them onto rabbitmq.
What I would like to do is dynamically set the rabbitmq routing key based on a field within the data but at the moment i can only set the rabbitmq routing key at configuration time.
Can anyone suggest any how i could go about doing this?
Ideally i would like be able to use the nifi expression language to set the routing key and exchange for the publishamqp processor.
Thanks
Brian