Giter Club home page Giter Club logo

node-red-contrib-kafkanode's Introduction

PATCHED VERSION OF https://www.npmjs.com/package/node-red-contrib-kafka-node-latest

Kafka Node

Kafka node can produce/consume the mesasges to/from kafka cluster along with topic on NodeRED.

Install

Install from npm

npm install -g node-red-contrib-kafka-node-latest

Prerequisites

Usage

Producer Node

Alt text

Parameters:
  • brokerUrl - The brokerUrl of Kafka.
  • Topic - The topic of message to produce.
Consumer Node

Alt text

Parameters:
  • brokerUrl - TThe brokerUrl of Kafka.
  • Topic - The topic of message to produce.
  • GroupId - The group ID.

Group ID is a string that uniquely identifies the group of consumer processes to which this consumer belongs. By setting the same group id multiple processes indicate that they are all part of the same consumer group.

Version

0.1.5

Tech

  • Kafka - Apache Kafka is publish-subscribe messaging rethought as a distributed commit log.
  • Zookeeper - ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
  • Kafka-Node - Kafka-node is a Node.js client with Zookeeper integration for Apache Kafka 0.8.1 and later.

Authors

node-red-contrib-kafkanode's People

Contributors

armiand avatar dependabot[bot] avatar memoverflow avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

node-red-contrib-kafkanode's Issues

Partition support ?

Hi, currently the node only support partition 0 which is… a bit strange. Do you have plans to fix that too ?

log sent messages only when debug is enabled

now, all sent messages are logged regardless of the debug option. It would be better to not log sent messages when debug is not enabled. This may impact the efficiency when a lot of messages are passed.

Where do I put my Keystore and Truststore?

How can I load the .jks Files?

Java Example:
def kafkaConsumerSettings: ConsumerSettings[Array[Byte], String] = {

val path = Environment.simple().getFile("/conf/ssl").getAbsolutePath();
ConsumerSettings(actorSystem, new ByteArrayDeserializer, new StringDeserializer)
  .withBootstrapServers("kafka.sbd.corproot.net:9093")
  .withGroupId("sint.test.something")
  .withProperty("security.protocol", "SSL" )
  .withProperty( "ssl.keystore.location", s"${path}/sint-iapc-keystore.jks" )
  .withProperty( "ssl.truststore.location", s"${path}/sint-iapc-truststore.jks" )
  .withProperty( "ssl.keystore.password", "replaceme!" )
  .withProperty( "ssl.truststore.password", "replaceme!" )
  .withProperty( "ssl.key.password", "replaceme!" )

}

Thanks for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.