Comments (1)
Apparently, the producer options should contain a serializer class to allow strings to be encoded to byte arrays, as follows:
producer_options = {:broker_list => "localhost:9092", "serializer.class" => "kafka.serializer.StringEncoder"}
I will submit a merge request with an updated example soon.
from jruby-kafka.
Related Issues (20)
- Consumer parallelism? HOT 7
- Where can I find group.rb? HOT 1
- Latest gem release (for jruby) doesn't have new, simpler consumer. HOT 2
- Create CI build
- Are there any plans to upgrade to the latest Kafka API? I would like mutual TLS support HOT 6
- jruby build dependencies
- Implement KafkaConsumer
- Add CI for v1_x HOT 1
- add LZ4 codec for producer
- 3.0 - Cannot get past iterator.hasNext HOT 9
- Namespace conflicts HOT 3
- Use Kafka Clients Jar
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.kafka.clients.producer.ProducerConfig HOT 6
- Port CI release to v1_x branch. HOT 1
- log4j warnings HOT 2
- Consumer stops working HOT 6
- ArgumentError: Parameter :metadata_broker_list is required.
- avro support
- Use kafka-client 2.0.0 jars HOT 2
- jruby-kafka_jars.rb missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jruby-kafka.