Comments (5)
Could you please paste some code example here?
from kafka-node.
Sample producer:
var kafka = require('kafka-node'),
Producer = kafka.Producer,
client = new kafka.Client('xxxxxxxxxxx:2181','testing'),
producer = new Producer(client),
payloads = [
{ topic: 'Test_1.0', messages: '{"korean":"추ㅏㅗㅑㅐㄹㄷ"}', partition: 0 }
];
producer.on('ready', function () {
producer.send(payloads, function (err, data) {
console.log(data);
});
})
Results from running the consumer in kafka/bin directory:
{"korean":"추ㅏㅗ
from kafka-node.
I can get the complete JSON from both Kafka-node consumer and the Kafka-console-consumer. Can you get the expected message using Kafka-node consumer?
from kafka-node.
I just update to a newer version of kafka-node and this seems to be fixed.
Sorry.
On Tue, Apr 1, 2014 at 9:15 AM, Zhong Yu [email protected] wrote:
I can get the complete JSON from both Kafka-node consumer and the
Kafka-console-consumer. Can you get the expected message using Kafka-node
consumer?Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-39225092
.
from kafka-node.
Good.
from kafka-node.
Related Issues (20)
- Request: upgrade dependency Snappy HOT 2
- Adding SASL users dynamically without cluster restart
- The "chunk" argument must be of type string or an instance of Buffer or Uint8Array HOT 1
- Need to Fix All vulnerabilities of Kafka-node HOT 2
- Make the error code be included in the error message.
- Need to resolve vulnerabilities on snappy.
- ConsumerGroup Noting to be commited
- Class extends value undefined is not a constructor or null HOT 1
- Help: Kafka topics are deleted automatically after sudo systemctl stop kafka is done. HOT 2
- High synk vulnerability.
- High synk vulnerability. Regular Expression Denial of Service HOT 1
- Producer is not sending message to new partitions added at runtime to a topic
- kafka-node with the Azure event hub connect string not working
- Getting Error "ECONNRESET at TLSWrap.onStreamRead" on producing message to event hub.
- kafka-node 支持定时检测连接情况并断线重连吗
- [Product Announcement] Introducing Kafka Sonar, the first Kafka Monitoring Tool on Docker Desktop
- kafka-code 支持只能被消费者组中的一个消费者消费吗?
- BrokerNotAvailableError: Broker not available (sendRequest -> ensureBrokerReady) HOT 1
- Does Kafka-node supports ECMA script or not
- Kafka-node 5.0.0 support highest kafka version
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 kafka-node.