First, the configuration of Zookeeper in kafka
Permalink: http://gaojingsong.iteye.com/blog/2288102
Preview article: Kafka stand-alone environment construction
############################# Server Basics #############################
# The id of the broker. This must be set to a unique integer for each broker.
broker.id=0
############################# Socket Server Settings #############################
# The port the socket server listens on
port=9092
# Hostname the broker will bind to. If not set, the server will bind to all interfaces
host.name=192.168.3.160
############################# Zookeeper #############################
# Zookeeper connection string (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all kafka znodes.
zookeeper.connect=192.168.3.163:2181
# Timeout in ms for connecting to zookeeper
zookeeper.connection.timeout.ms=6000
Second, the configuration of Zookeeper in storm
Permalink: http://gaojingsong.iteye.com/blog/2304318
Preview article: [Detailed explanation of storm configuration parameters]
# storm.zookeeper.servers:
# - "server1"
# - "server2"
storm.zookeeper.servers:
- "192.168.3.161"
storm.zookeeper.port: 2181
storm.zookeeper.root: "/storm"
#
# nimbus.host: "nimbus"
#
nimbus.host: "192.168.3.160"
nimbus.childopts: -Xmx1024m -Djava.net.preferIPv4Stack=true
ui.childopts: -Xmx768m -Djava.net.preferIPv4Stack=true
ui.host: 0.0.0.0
ui.port:8080
supervisor.childopts: -Djava.net.preferIPv4Stack=true
worker.childopts: -Xmx768m -Dfile.encoding=utf-8 -Djava.net.preferIPv4Stack=true
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703