I would recommend you use either the Blizzard node-rdkafka module ( see https://github.com/Blizzard/node-rdkafka <https://github.com/Blizzard/node-rdkafka>) or the Confluent kafka-rest-node module ( see https://github.com/confluentinc/kafka-rest-node <https://github.com/confluentinc/kafka-rest-node>)
The Blizzard code is a node.js wrapper on the excellent C language librdkafka library so it talkes native Kafka wire protocol. The Confluent code is a pure javascript node.js interface to the Confluent Kafka REST Proxy (see http://docs.confluent.io/3.1.0/kafka-rest/docs/index.html <http://docs.confluent.io/3.1.0/kafka-rest/docs/index.html>) so it uses HTTP(S) between your node.js app and the Kafka REST Proxy which makes it a good choice if your code is running outside the datacenter and behind firewalls that might not allow direct Kafka TCP client connections to remote Kafka Brokers. I have personally used both on these node.js libraries in a number of my own node Kafka applications and they are both up to date and stable. -hans > On Dec 16, 2016, at 7:01 PM, Chintan Bhatt <chintanbhatt...@charusat.ac.in> > wrote: > > Hi.... > I want to give continuous output (avg. temperature) generated from node.js > to store on Hadoop and then retrieve it for visualization. > please guide me how to give continuous output of node.js to kafka. > > -- > CHINTAN BHATT <http://in.linkedin.com/pub/chintan-bhatt/22/b31/336/> > > -- > > > DISCLAIMER: The information transmitted is intended only for the person or > entity to which it is addressed and may contain confidential and/or > privileged material which is the intellectual property of Charotar > University of Science & Technology (CHARUSAT). Any review, retransmission, > dissemination or other use of, or taking of any action in reliance upon > this information by persons or entities other than the intended recipient > is strictly prohibited. If you are not the intended recipient, or the > employee, or agent responsible for delivering the message to the intended > recipient and/or if you have received this in error, please contact the > sender and delete the material from the computer or device. CHARUSAT does > not take any liability or responsibility for any malicious codes/software > and/or viruses/Trojan horses that may have been picked up during the > transmission of this message. By opening and solely relying on the contents > or part thereof this message, and taking action thereof, the recipient > relieves the CHARUSAT of all the liabilities including any damages done to > the recipient's pc/laptop/peripherals and other communication devices due > to any reason.