kafka

Stereo 2018-07-02

broker.id=1

port=9092

host.name=192.168.55.91

num.network.threads=2

num.io.threads=8

socket.send.buffer.bytes=1048576

socket.receive.buffer.bytes=1048576

socket.request.max.bytes=104857600

log.dirs=/ddhome/bin/kafka/tmp/kafka-logs

num.partitions=2

log.retention.hours=168

log.segment.bytes=536870912

log.retention.check.interval.ms=60000

log.cleaner.enable=false

zookeeper.connect=192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181

zookeeper.connection.timeout.ms=1000000

#kafka\u5B9E\u9645\u4F7F\u7528\u6848\u4F8B210\u670D\u52A1\u5668kafka\u914D\u7F6E

broker.id=2

port=9092

host.name=192.168.55.81

num.network.threads=2

num.io.threads=8

socket.send.buffer.bytes=1048576

socket.receive.buffer.bytes=1048576

socket.request.max.bytes=104857600

log.dirs=/ddhome/bin/kafka/tmp/kafka-logs

num.partitions=2

log.retention.hours=168

log.segment.bytes=536870912

log.retention.check.interval.ms=60000

log.cleaner.enable=false

zookeeper.connect=192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181

zookeeper.connection.timeout.ms=1000000

sshddava/ddhome/bin/kafka/bin/kafka-server-start.sh-daemon/ddhome/bin/kafka/config/server.properties&

sshddbva/ddhome/bin/kafka/bin/kafka-server-start.sh-daemon/ddhome/bin/kafka/config/server.properties&

kafka-topics.sh--create--zookeeper192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181--replication-factor1--partitions1--topiclhg

kafka-topics.sh--list--zookeeper192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181

kafka-topics.sh--describe--zookeeper192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181--topictest

kafka-topics.sh--create--zookeeper192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181--replication-factor1--partitions1--topictest

kafka-console-producer.sh--zookeeper192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181--topictest

kafka-console-consumer.sh--zookeeper192.168.55.91:2181,192.168.55.81:2181,192.168.55.31:2181--topictest--from-beginning

相关推荐