Integrate Apache storm with zookeeper in windows

http://stackoverflow.com/a/30818202



Can anyone help me how to integrate storm with zookeeper in windows.

I try to find the find a good installation steps for production in windows but I can't.

Write now I have installed stand alone zookeeper and I am trying to configure it in the storm.yaml.

sample code I tried :

 storm.zookeeper.servers:
   - "127.0.0.1"
    - "server2"

storm.zookeeper.port: 2180 
nimbus.host: "localhost"

If any body knows please help me.

share improve this question
 
 
Next time on words, to highlight code use ctrl+k , not # –  sᴜʀᴇsʜ ᴀᴛᴛᴀ  Aug 4 '14 at 11:55 

1 Answer

Please follow the below steps for complete installation of storm with zookeeper in windows 1. create a zoo.cfg file under /conf directory of zookeeper. here are the configuration entries

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=D:\\workspace\\zk-data
# the port at which the clients will connect
clientPort=2181

2.run the zookeeper by executing the zkServer.bat in /bin directory

3.create the storm.yaml file in /conf directory of the apache-storm here are the configuration entries

########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
    - "localhost"

#supervisor.slots.ports:
#    - 6700
#    - 6701
#    - 6702
#   - 6703
storm.local.dir: D:\\workspace\\storm-data
nimbus.host: "localhost"
# 
# 

4.run the below commands from the command prompt

 a. bin\storm nimbus
 b. bin\storm supervisor
 c. bin\storm ui
  1. hit the browser with localhost:8080 to see the nimbus ui

6.make sure your JAVA_HOME path does not have any space. otherwise storm command will not run.

share improve this answer
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值