Problems with Kafka producer node

291 views
Skip to first unread message

andrea.gi...@gmail.com

unread,
May 10, 2017, 10:15:47 AM5/10/17
to Node-RED
Hello,
I have installed node-red on raspberry pi 3 to collect data and then store them in kafka but now I have some issue with kafka producer node. 
I've setup a kafka server on my laptop that correctly works in console: if I send messages on kafka producer console I correctly receive it on consumer console.
Unfortunately when I try to inject a timestamp in kafka producer in node-red on raspberry, server gives no response. 

- Debug page of node-red says: "BrokerNotAvailableError: Broker not available"
- In producer node ZKQuorum field I've typed the ip of the laptop and set port to 9092, as I seen in example on npm site.
- I'm sure the topic is correct.
- I'm sure zookeeper is running and kafka server also. Indeed if at same time I try to use kafka with laptop console it works great.

Any hint about this issue?

andrea.gi...@gmail.com

unread,
May 10, 2017, 11:52:17 AM5/10/17
to Node-RED
Update. I've tried to implement a python function in node-red to send a simple message to the kafka producer and I have obtained a deeper error log in:
/usr/local/lib/python2.7/dist-packages/kafka/client_async.py", line 808
I opened file and at line 808 there is a function with this comment:

It can be helpful?

Ben Hardill

unread,
May 10, 2017, 3:49:17 PM5/10/17
to Node-RED
Please do not cross post questions here and on Stackoverflow, as it just fragments answers, the people who are likely to answer look at both places.
Reply all
Reply to author
Forward
0 new messages