kafka-connect-mqtt | mqtt conncetor for kafka | Pub Sub library
kandi X-RAY | kafka-connect-mqtt Summary
kandi X-RAY | kafka-connect-mqtt Summary
mqtt (source) conncetor for kafka
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start the MQTT source
- Create an SSLSocket factory
- Get the version of the connector
- Returns the current version
- Get an instance of the specified class
- Creates a new instance of the specified class
- Returns the version of this task
- A connection lost
- Gets the message payload
- The main entry point
- Create base config definition
- Processes a message
- Stop this connector
- Starts a new MqSourceConnector
- Stops this connection
- Returns a set of task configurations
- Set data for topic
- Poll for messages from queue
- Returns an array of source records
kafka-connect-mqtt Key Features
kafka-connect-mqtt Examples and Code Snippets
Community Discussions
Trending Discussions on kafka-connect-mqtt
QUESTION
Now I'm trying to connect from mqtt messages to kafka (actually spark streaming in kafka)
I used this connecter https://github.com/evokly/kafka-connect-mqtt
And Spark-2.1.0, Kafka - 0.10.1.1
Spark streaming output such like this
...ANSWER
Answered 2017-Jul-01 at 19:47That payload "MTIzMTIz" is the string "123123" just base64 encoded. If you want to just take the MQTT payload and send it to Kafka without base64 encoding you should use a ByteArrayConverter. In my config for the same mqtt connector I set the value converter like so:
"value.converter": "io.confluent.connect.replicator.util.ByteArrayConverter"
The above ByteArrayConverter comes with the Confluent Enterprise distribution but there are other open source Kafka Connect ByteArrayConverters such as the one included with the qubole/streamx kafka-connect-s3 connector.
There is KIP-128 to add a standard ByteArrayConverter to the Kafka Connect framework
UPDATE: Kafka 0.11 is now released and ships with a ByteArrayConverter. Configure "value.converter": "org.apache.kafka.connect.converters.ByteArrayConverter"
and you should get the raw mqtt payload without Base64 encoding.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kafka-connect-mqtt
You can use kafka-connect-mqtt like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the kafka-connect-mqtt component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page