Use the following procedure to configure Storm:
Add the following properties to the
/etc/storm/conf/storm.yaml
file, substituting your own list of hostnames and ports:storm.zookeeper.servers: [<zookeeper-servers>] nimbus.seeds: [<nimbus-hostnames>] storm.local.dir: $STORM_LOCAL_DIR logviewer.port: 8081
where:
<zookeeper-servers> is a comma-separated list of ZooKeeper servers.
<nimbus-hostnames> is a comma-separated list of hosts where the Storm Nimbus server is started.
$STORM_LOCAL_DIR should be
/tmp/storm/local
, and it must exist on all Storm nodes.For example:
storm.zookeeper.servers: ["host1:port1", "host2:port2", "host3:port3"] nimbus.seeds: ["host1:port1", "host2:port2"] storm.local.dir: /mnt/storm logviewer.port: 8081
Run the following commands:
chown -R storm:storm $STORM_LOCAL_DIR
chmod -R 755 $STORM_LOCAL_DIR