Java 在windows中将Apache storm与zookeeper集成

Java 在windows中将Apache storm与zookeeper集成,java,apache-storm,apache-zookeeper,Java,Apache Storm,Apache Zookeeper,有谁能帮我在windows中集成storm和zookeeper吗 我试图在windows中找到一个好的生产安装步骤,但我做不到 现在写我已经安装了独立的zookeeper,我正在尝试在storm.yaml中配置它 我尝试过的示例代码: storm.zookeeper.servers: - "127.0.0.1" - "server2" storm.zookeeper.port: 2180 nimbus.host: "localhost" 如果有人知道,请帮助我。请按照以下步

有谁能帮我在windows中集成storm和zookeeper吗

我试图在windows中找到一个好的生产安装步骤,但我做不到

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

我尝试过的示例代码:

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

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

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

请按照以下步骤在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
########### 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"
# 
# 
2.通过在/bin目录中执行zkServer.bat来运行zookeeper

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

# 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
########### 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
  • 点击localhost:8080浏览器查看nimbus ui
  • 6.确保JAVA_主路径没有任何空间。否则,风暴指挥部
    将不会运行。

    下次在Word上,要突出显示代码,请使用
    ctrl+k
    ,而不是