Coder Social home page Coder Social logo

igit-cn / emqx_kafka_bridge-3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from araditc/emqx_kafka_bridge

0.0 0.0 0.0 13 KB

This is a plugin for the EMQX broker that sends all messages received by the broker to kafka.

License: Apache License 2.0

Makefile 5.92% Erlang 94.08%

emqx_kafka_bridge-3's Introduction

Build the EMQ broker

  1. clone emq-relx project
git clone https://github.com/emqx/emqx.git
  1. Add DEPS of the plugin in the Makefile
DEPS += emqx_kafka_bridge
dep_emqx_kafka_bridge = git https://github.com/araditc/emqx_kafka_bridge.git release
  1. Add load plugin in relx.config
{emqx_kafka_bridge, load},
  1. Build
cd emq-relx && make

Configuration

You will have to edit the configurations of the bridge to set the kafka Ip address and port.

Edit the file /emqx_kafka_bridge/etc/emqx_kafka_bridge.config

 emqx.kafka.bridge.broker = 172.19.16.67:19092, 172.19.16.68:19092, 172.19.16.69:19092
 emqx.kafka.bridge.partition = 10
 emqx.kafka.bridge.client.flag = auto_start_producers:true, allow_topic_auto_creation:false, query_api_versions:false
 emqx.kafka.bridge.client.integer = reconnect_cool_down_seconds:10
 emqx.kafka.bridge.regex = ^(client|device|paas)/products/(\\S+)/devices/(\\S+)/(command)(/\\S+)*$
 emqx.kafka.bridge.topic = device:saas_device_downstream, client:saas_client_downstream, paas: paas_sqdata_upstream
 emqx.kafka.bridge.hook.client.connected.topic     = mqtt_client_connected
 emqx.kafka.bridge.hook.client.disconnected.topic  = mqtt_client_disconnected

Start the EMQ broker and load the plugin

  1. cd /emqx
  2. ./bin/emqx start
  3. ./bin/emqx_ctl plugins load emqx_kafka_bridge

emqx_kafka_bridge-3's People

Contributors

ammarheidari avatar

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.