- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Invalid upstream connection for MQTT in Nifi
- Labels:
-
Apache NiFi
Created ‎09-20-2017 04:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I installed mosquitto on hdf and it is running now. Now i am trying to call publishMQTT and receive the messages from broker but it gives me "upstream connections is invalid because processor requires an upstream connection but currently has none".
Please note the i also open the firewall rules and can do telnet to the broker URL too.
Please find the attached processor config.
Thanks,
Created ‎09-20-2017 02:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sanaz Janbakhsh,
PublishMQTT is a processor that requires an incoming relationship. Basically, something has to be coming in to it to publish to a broker. That is why you are getting the "upstream connections is invalid..." message.
It sounds like you need to use the ConsumeMQTT processor which receives messages from an MQTT broker.
If I am misunderstanding your use case, please post a screenshot of your flow if possible.
Created ‎09-20-2017 02:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sanaz Janbakhsh,
PublishMQTT is a processor that requires an incoming relationship. Basically, something has to be coming in to it to publish to a broker. That is why you are getting the "upstream connections is invalid..." message.
It sounds like you need to use the ConsumeMQTT processor which receives messages from an MQTT broker.
If I am misunderstanding your use case, please post a screenshot of your flow if possible.
Created ‎03-11-2020 05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what about "PostHttp" processor ?? it always showing me the error Upstream connection is invalid! any help please
Created ‎09-20-2017 07:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Andrew,
I've tried consumeMQTT too but the clientId was the issue. Thanks for your help.
SJ
