centos下安装storm
centOS安装ZeroMQ
centOS安装ZeroMQ所需组件及工具:
yum install gcc
yum install gcc-c++
yum install make
yum install uuid-devel
yum install libuuid-devel
JZMQ安装过程中错误及所需组件:
错误:autogen.sh: error: could not find libtool. libtool is required to run autogen.sh.
安装:yum install libtool
1.1.1 安装JZMQ
从官方网站下载最新稳定的JZMQ
git clone https://github.com/nathanmarz/jzmq.git
报错找不到git,
先安装git
apt-get install git
然后
git clone https://github.com/nathanmarz/jzmq.git
cd jzmq
然后继续运行 ./autogen.sh
报错
autogen.sh: error: could not find pkg-config. pkg-config is required to run autogen.sh.
需要安装pkg-config
安装 sudo apt-get install pkg-config
sudo apt-get install libtool
sudo apt-get install autoconf
再次安装./autogen.sh
安装成功后,继续./configure
运行make
报错
make[1]: *** No rule to make target `classdist_noinst.stamp', needed by `org/zeromq/ZMQ.class'. Stop.
make: *** [all-recursive] Error 1
从网上找了下。
需要做如下的额外动作。
$ touch src/classdist_noinst.stamp
$ make
make[1]: *** No rule to make target `org/zeromq/ZMQException.class, needed by `all'. Stop.
make: *** [all-recursive] Error 1
需要继续做
$ cd src/org/zeromq/
$ /jzmq/src/org/zeromq$ javac *.java
$ cd ../../../
运行以上命令后,就可以make 和make install了
$ make
$ sudo make install
只要没报错,JZMQ安装成功
1.1.1 安装Storm
下载最新稳定版本 0.82
wget https://www.dropbox.com/s/fl4kr7w0oc8ihdw/storm-0.8.2.zip
unzip storm-0.8.2.zip
cd /data/justfortest/stormsingle/storm-0.8.2/conf
vi storm.yaml
添加内容如下:
注意每个行头、冒号和-后面都要有空格
storm.zookeeper.servers:
- "xxx.xxx.xxx.xxx"
storm.zookeeper.port: 2181
nimbus.host: "xxx.xxx.xxx.xxx"
ui.port: "18080"
storm.local.dir: "/data/justfortest/stormsingle/storm-0.8.2/localdata"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
1.1.1 启动Storm服务器
先启动zookeeper
cd /data/justfortest/stormsingle/zookeeper-3.4.5/bin
./zkServer.sh start
启动nimbus进程
./storm nimbus &
启动supervisor进程
./storm supervisor &
启动ui进程
./storm ui &
验证是否成功
通过 netstat -aon |grep 18080 查看ui是否正常启动
在浏览器输入
http://xxx.xxx.xxx.xxx:18080/
另外,通过jps命令,也可查看当前运行的进程
如果出错,可以查看相关日志
日志在 /data/justfortest/stormsingle/storm-0.8.2/logs
每个进程分别对应一个日志
1.1.1 启动Storm服务器
直接kill掉各个进程即可
Kill -9 5666
Kill -9 5171
Kill -9 8839
停止zookeeper
cd /data/justfortest/stormsingle/zookeeper-3.4.5/bin
./zkServer.sh stop
centos下安装storm的更多相关文章
- CentOS下安装hadoop
CentOS下安装hadoop 用户配置 添加用户 adduser hadoop passwd hadoop 权限配置 chmod u+w /etc/sudoers vi /etc/sudoers 在 ...
- CentOS下安装使用start-stop-daemon
CentOS下安装使用start-stop-daemon 在centos下下了个自启动的服务器脚本 执行的时候发现找不到start-stop-daemon命令 好吧 执行手动编译一下 加上这个命令 w ...
- 从零开始学 Java - CentOS 下安装 Tomcat
生活以痛吻我,我仍报之以歌 昨天晚上看到那个冯大辉老师的微信公众号,「小道消息」上的一篇文章,<生活以痛吻我,我仍报之以歌>.知乎一篇匿名回答,主题为<冯大辉到底是不是技术大牛,一个 ...
- CentOS 下安装
2016年12月5日15:25:58 ----------------------------------- 通常情况下在centos下安装软件就用yum. 关键是,使用yum你要知道安装包的名字是什 ...
- [Linux]CentOS下安装和使用tmux
前天随意点开博客园,看到了一篇关于tmux的文章 Tmux - Linux从业者必备利器,特意还点进去看了.毕竟Linux对于做游戏服务端开发的我来说,太熟悉不过了.不过我就粗略地看了一眼,就关掉了. ...
- CentOS下安装JDK7 转载
转载地址:http://www.cnblogs.com/rilley/archive/2012/02/02/2335395.html CentOS下安装JDK7 下载地址:http://www.ora ...
- Centos下安装mysql 总结
一.MySQL安装 Centos下安装mysql 请点开:http://www.centoscn.com/CentosServer/sql/2013/0817/1285.html 二.MySQL的几个 ...
- 在centos下安装django
这里有一个不错的Django的学习资料.先收藏一下,以备后用.谢谢 http://www.ziqiangxuetang.com/django/django-install.html 在centos下安 ...
- centos下安装php环境
centos下安装php环境 安装apache yum install httpd-devel 启动apache /etc/init.d/httpd start 安装mysql yum install ...
随机推荐
- boost之数据结构和容器
1.静态数组array,boost对静态数组进行了封装,使用和普通数组一样的初始化式进行初始化. #include <iostream> #include <boost/array. ...
- 2.3 使用ARDUINO控制MC20进行GPRS的TCP通讯
需要准备的硬件 MC20开发板 1个 https://item.taobao.com/item.htm?id=562661881042 GSM/GPRS天线 1根 https://item.taoba ...
- Shell字符串操作
@1:子串削除 ${string#substring} 从$string 的开头位置截掉最短匹配的$substring. ${string##substring} 从$string 的开头位置截掉最长 ...
- classmethod
描述 classmethod 修饰符对应的函数不需要实例化,不需要 self 参数,但第一个参数需要是表示自身类的 cls 参数,可以来调用类的属性,类的方法,实例化对象等. 语法 classmeth ...
- idea java web 使用说明
String realPath = request.getSession().getServletContext().getRealPath(uploadPath);//上传压缩包所在目录 ...
- Loadrunder脚本篇——Run-time Settings之Browser Enmulation
浏览器模拟 所有Internet Vuser Header包含一个标识将被模拟的浏览器类型(或无线工具包)的User Agent header.例如User-Agent: Mozilla/3.01Go ...
- matlab fread
Matlab中fread函数用法 “fread”以二进制形式,从文件读出数据. 语法1:[a,count]=fread(fid,size,precision) 语法2:[a,count]=fre ...
- Linux 多线程编程实例
一.多线程 VS 多进程 和进程相比,线程有很多优势.在Linux系统下,启动一个新的进程必须分配给它独立的地址空间,建立众多的数据表来维护代码段和数据.而运行于一个进程中的多个线程,他们之间使用相同 ...
- Centos 一次卸载多个RPM包
rpm 不支持通配符,可以使用 xargs来接收多个变量 示例,一次性卸载所有 erlang先关的rpm包: rpm -qa | grep erlang | xargs rpm -e --nodeps
- codeforces 435B
题意:只能对相邻的两个数字进行交换,允许k次交换,输出交换能得到的最大的数.从最高位开始寻找最优,每次寻找能交换的步数里交换到的最大值进行交换. #include<cstdio> #inc ...