Integrate Apache storm with zookeeper in windows

本文介绍如何在Windows环境中完成Apache Storm与Zookeeper的集成配置。通过创建配置文件并进行必要的设置,可以实现两者的顺利连接。此外,还提供了具体的安装步骤和命令行操作指南。

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
 

源码直接下载地址: https://pan.quark.cn/s/a4b39357ea24 USB 眼图检测手段 本资源主要阐述了运用示波器检测 USB 眼图以及时序的检测手段,意在辅助测试工程师独立实施检测。以下是该检测手段的详细知识要点: 一、检测所需仪器设备 * 一台泰克 MSO 70404C 示波器,配备 1 条 P7340A(差分式)和 1 条 P7240(单端式)探针 * 一个 USB 检测夹具(泰克提供) * 三条 USB 线缆,其中 2 条为 A 口转 B 口型的 USB 线缆,另外 1 条为标准的 micro USB 数据线缆 * 一台个人电脑(建议使用笔记本电脑),预装 XHCI HSETT 检测软件 二、USB 眼图检测流程 1. 将差分探针连接至示波器的 CH1 通道,然后将差分探针的另一端连接至 USB 检测夹具上 J310 接口的中间两个引脚(留意正负极的连接)。 2. 通过 2 条 USB 线缆(A 口转 B 口型)将夹具上的 J35 和 J37 接口分别接入笔记本电脑的两个 USB 接口,夹具上的 J35 为供电接口,J37 为数据传输接口。 3. 使用 micro USB 线缆将夹具上的 J34 位置的 A 型 USB 接口与手机相连接,确保手机设置中已开启 USB 调试功能。 4. 将夹具上的单刀双掷开关(S6),调整至下方位置(INIT 红灯点亮)。 5. 检测线路的连接方式如图 1 所示。 6. 启动电脑上的 XHCI HSETT 软件后,点击 TEST 按钮进行操作,若手机与电脑均通过 USB 线缆正常连接至夹具,select device 框中将显示识别到的手机设备。 7. 在 Device Co...
打开链接下载源码: https://pan.quark.cn/s/9b2c3f4a311b 在信息技术领域的界面设计及开发范畴内,对用户界面(UI)进行优化是一项核心的技能,特别是在网页设计工作中,按钮(Button)作为交互设计的基础构成部分,其外观设计直接关联到用户的使用感受和网站的整体视觉美感。本文将详细阐释如何借助层叠样式表(CSS)来个性化按钮的样式,使其更具活力和吸引力。 ### 一、基础原理:CSS与按钮样式 CSS是一种用于规定网页文档布局及外观的语言,它使开发者能够调控页面元素的表现形式,涵盖色彩、字体、尺寸、定位等要素。对于按钮设计而言,CSS可用于设定其形态、尺寸、色彩、边框、背景以及鼠标悬停或点击时的动态效果,从而提升用户界面的互动性和视觉吸引力。 ### 二、样式详细解析 #### 1. `.btn` 样式 - **边框设定**:采用1像素宽的`#7b9ebd`色实线边框。 - **内边距配置**:在各个方向均设置2像素的间距。 - **字体尺寸设定**:字号为12像素。 - **背景渐变设置**:运用IE专用的滤镜实现从白色至`#cecfde`的渐变。 - **光标形态**:当鼠标指针移至按钮时,光标转变为手形图标。 - **文字色彩**:文本颜色为黑色。 #### 2. `.btn1_mouseout` 样式 这是`.btn`在鼠标未悬停情境下的样式表现,主要变更在于边框及背景渐变的色彩: - **边框设定**:边框颜色调整为`#7EBF4F`。 - **背景渐变设置**:渐变色彩从白色过渡至`#B3D997`。 #### 3. `.btn1_mouseover` 样式 该样式应用于鼠标指针悬停在按钮之上时: - **边框设定**:与`...
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值