【问题标题】:Integrate Apache storm with zookeeper in windows在 Windows 中将 Apache Storm 与 Zookeeper 集成
【发布时间】:2016-11-14 14:13:49
【问题描述】:

谁能帮我在windows中如何将storm与zookeeper集成。

我尝试在 windows 中找到适合生产的安装步骤,但我找不到。

现在写我已经安装了独立的zookeeper,我正在尝试在storm.yaml中配置它。

我试过的示例代码:

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

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

如果有人知道,请帮助我。

【问题讨论】:

  • 下次在文字上,突出代码使用ctrl+k,而不是#

标签: java apache-storm apache-zookeeper


【解决方案1】:

请按照以下步骤在windows中使用zookeeper完整安装storm 1.在zookeeper的/conf目录下创建zoo.cfg文件。 这是配置条目

# 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.执行/bin目录下的zkServer.bat运行zookeeper

3.在apache-storm的/conf目录下创建storm.yaml文件 这是配置条目

########### 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.在命令提示符下运行以下命令

 a. bin\storm nimbus
 b. bin\storm supervisor
 c. bin\storm ui
  1. 使用 localhost:8080 访问浏览器以查看 nimbus ui

6.确保您的 JAVA_HOME 路径没有任何空间。否则风暴命令 不会运行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-13
    • 1970-01-01
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-14
    • 2018-09-19
    相关资源
    最近更新 更多