`
gaojingsong
  • 浏览: 1182010 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【五】Storm安装步骤.txt

 
阅读更多

一、安装zeromq-2.1.7.tar.gz[root@hadoop0 opt]# wget http://download.zeromq.org/zeromq-2.1.7.tar.gz--2015-11-20 17:49:28--  http://download.zeromq.org/zeromq-2.1.7.tar.gz
Resolving download.zeromq.org... 95.142.169.98
Connecting to download.zeromq.org|95.142.169.98|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1877380 (1.8M) [application/x-gzip]
100%[=====================================================================================================================================================>] 1,877,380   24.1K/s   in 30s    
[root@hadoop0 opt]# tar -xzf zeromq-2.1.7.tar.gz

[root@hadoop0 opt]# cd zeromq-2.1.7

[root@hadoop0 zeromq-2.1.7]# ./configurechecking whether the C compiler works... yes
checking whether we are using Intel C compiler... no
checking whether we are using Sun Studio C compiler... no
checking whether we are using clang C compiler... no
checking whether we are using gcc >= 4 C compiler... yes
checking whether the C++ compiler works... no
configure: error: Unable to find a working C++ compiler
[root@hadoop0 zeromq-2.1.7]# make

make: *** No targets specified and no makefile found.  Stop.
解决:一系列依赖包
[root@hadoop0 zeromq-2.1.7]# yum install gcc

checking whether the C++ compiler works... no
configure: error: Unable to find a working C++ compiler
解决:一系列依赖包
[root@hadoop0 zeromq-2.1.7]# yum install gcc-c++

configure: error: cannot link with -luuid, install uuid-dev. 运行时如果报这个错解决方案如下:
yum install uuid-dev 提示找不到该依赖包
解决:一系列依赖包
[root@hadoop0 zeromq-2.1.7]#yum install uuid*    

直接用* ok
[root@hadoop0 zeromq-2.1.7]#./configure 

再次运行configure还是报错
configure: error: cannot link with -luuid, install uuid-dev.
解决:一系列依赖包
[root@hadoop0 zeromq-2.1.7]#yum install e2fsprogs*

okconfigure: error: Unable to find a working C++ compiler 
提示缺少C++编译器,先安装G++。
解决:一系列依赖包
[root@hadoop0 zeromq-2.1.7]#yum install gcc-c++ 

checking for ncurses/ncurses.h... no
configure: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)
[root@hadoop0 util-linux-2.21.1]# make

make: *** No targets specified and no makefile found.  Stop.
[root@hadoop0 util-linux-2.21.1]# yum install ncurses

[root@hadoop0 util-linux-2.21.1]# ./configure --without-ncurses
解决:一系列依赖包,安装util-linux-2.21
[root@hadoop0 opt]#wget ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.21/util-linux-2.21.1.tar.gz  [root@hadoop0 opt]tar -zxvf util-linux-2.21.1.tar.gz

[root@hadoop0 opt]cd util-linux-2.21
[root@hadoop0 util-linux-2.21]./configure【./configure --without-ncurses 】

[root@hadoop0 util-linux-2.21]make HAVE_KILL=yes HAVE_SLN=yes
[root@hadoop0 util-linux-2.21]make HAVE_KILL=yes HAVE_SLN=yes install

 

二、安装zeromq-2.1.7

root@hadoop0 opt]# cd zeromq-2.1.7
[root@hadoop0 zeromq-2.1.7]# [color=red]./configure

[root@hadoop0 zeromq-2.1.7]#  make

[root@hadoop0 zeromq-2.1.7]#  make install

zeromq-2.1.7就装好了。

安装Git
[root@hadoop0 opt]# yum install git

三、安装jzmq

[root@hadoop0 opt]#git clone git://github.com/nathanmarz/jzmq.git

[root@hadoop0 opt]#cd jzmq

[root@hadoop0 jzmq]#./autogen.sh

[root@hadoop0 jzmq]#./configure

[root@hadoop0 jzmq]#make

[root@hadoop0 jzmq]# make install

jzmq就装好了。

四、安装Python2.7.2

 

wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
  tar zxvf Python-2.7.2.tgz
  cd Python-2.7.2
  ./configure
  make
  make install

五、安装storm-0.8.1

[root@hadoop0 opt]# unzip storm-0.8.1.zip
[root@hadoop0 opt]# mv storm-0.8.1 storm081
[root@hadoop0 opt]# cd storm081/
[root@hadoop0 storm081]# ls
bin  CHANGELOG.md  conf  lib  LICENSE.html  log4j  logs  public  README.markdown  RELEASE  storm-0.8.1.jar
[root@hadoop0 storm081]# cd conf/
[root@hadoop0 conf]# ls
storm.yaml


[root@hadoop0 bin]# ./storm
Commands: 
        activate
        classpath
        deactivate
        dev-zookeeper
        drpc
        help
        jar
        kill
        list
        localconfvalue
        nimbus
        rebalance
        remoteconfvalue
        repl
        shell
        supervisor
        ui
        version

Help:
        help
        help <command>

启动测试
[root@hadoop0 conf]# storm ui
Exception in thread "main" while parsing a block collection
in "<reader>", line 3, column 2:
     - "hadoop0"
     ^
expected <block end>, but found Key
in "<reader>", line 6, column 2:
     nimbus.host: "hadoop0"
     ^
Exception in thread "main" while parsing a block collection
in "<reader>", line 3, column 2:
     - "hadoop0"
     ^
expected <block end>, but found Key
in "<reader>", line 6, column 2:
     nimbus.host: "hadoop0"
     ^
        at backtype.storm.command.config_value.main(Unknown Source)
Running: java -server -Dstorm.options= -Dstorm.home=/opt/storm081 -Djava.library.path= -0.3.11.jar:/opt/storm081/lib/tools.macro-0.1.0.jar:/opt/storm081/lib/ring-servlet-  at backtype.storm.ui.core.<clinit>(Unknown Source)
Caused by: while parsing a block collection
in "<reader>", line 3, column 2:
     - "hadoop0"
     ^
expected <block end>, but found Key
in "<reader>", line 6, column 2:
     nimbus.host: "hadoop0"
   ^
        ... 10 more
Could not find the main class: backtype.storm.ui.core.  Program will exit.
[root@hadoop0 conf]# vi storm.yaml
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "hadoop0"
#     - "server2"
#
nimbus.host: "hadoop0"
#
#
# ##### These may optionally be filled in:
#
## List of custom serializations
# topology.kryo.register:
#     - org.mycompany.MyType
#     - org.mycompany.MyType2: org.mycompany.MyType2Serializer
#
## List of custom kryo decorators
# topology.kryo.decorators:
#     - org.mycompany.MyDecorator
#
## Locations of the drpc servers
# drpc.servers:
#     - "server1"
#     - "server2"

配置好以后到bin目录下:

./storm nimbus     启动storm主节点服务

./storm ui     启动storm监控页面:监控地址:http://hostname:8080


#这个是storm将要启动几个本地work,一个端口对应一个work。
supervisor.slots.ports:    - 6700    - 6701    - 6702    - 67032,启动supervisor
./storm supervisor

 

  • 大小: 15.7 KB
分享到:
评论

相关推荐

    storm部署详细步骤.txt

    storm部署详细步骤

    解决丢失Storm.dll的问题

    2. readme.txt - 这通常是一个文本文件,包含了关于如何使用或安装这些文件的说明,可能包括额外的解决步骤、注意事项或警告。 3. 更多DLL下载.url - 这是一个URL快捷方式,可能指向一个网站,提供其他缺失DLL文件的...

    基于Storm构建实时热力分布项目实战.txt

    1. **环境准备**:安装配置Apache Storm及相关组件(如Kafka、HBase等)。 2. **数据采集**:设计并实现数据采集模块,确保能够稳定地获取实时数据。 3. **数据处理**:编写Topology,定义Spout和Bolt,完成数据的...

    基于Storm构建实时热力分布项目实战-地址.txt

    ### 基于Storm构建实时热力分布项目实战 #### 一、项目背景与目标 在大数据时代,实时数据处理成为各个领域关注的重点之一。随着技术的发展,越来越多的应用场景需要对实时流数据进行处理和分析,例如金融交易、...

    storm实例,可以直接运行

    2. words111.txt:正如前面提到的,这是一个文本文件,通常在Storm的例子中,它可能包含一些单词,这些单词将被用作输入数据,通过Storm拓扑进行处理。例如,这个实例可能实现了一个常见的Word Count程序,统计文本...

    【46】2018年最新java大数据基于storm开发实时流处理器视频教程 .txt

    - **跨平台兼容性**:Java程序可以在任何安装了JVM的操作系统上运行,这使得Storm应用具备良好的可移植性。 #### 开发步骤示例 1. **创建Topology**: ```java public static void main(String[] args) { // ...

    apache-storm-0.9.6.tar及使用说明

    这个文件应该包含了详细的安装步骤、配置指南、创建和运行Topology的教程,以及可能遇到的问题和解决方案。详细阅读这个文件对理解和使用Apache Storm至关重要。 **6. 大数据实时处理** - Apache Storm在大数据...

    AMQP_Storm-1.3.2-py2.py3-none-any.whl.zip

    文件"AMQP_Storm-1.3.2-py2.py3-none-any.whl"是这个库的可分发版本,而"使用说明.txt"可能是关于如何安装和使用该库的指南。 AMQP(Advanced Message Queuing Protocol)是一种开放标准,用于在应用程序之间进行...

    AMQP_Storm-1.4.0-py2.py3-none-any.whl.zip

    "使用说明.txt"很可能是包含了关于如何安装和使用AMQP_Storm库的详细指南,包括可能的系统需求、安装步骤、API示例以及任何特定的配置或注意事项。 安装AMQP_Storm库的步骤通常是解压zip文件,然后使用pip来安装whl...

    AMQP_Storm-1.3.3-py2.py3-none-any.whl.zip

    4. **安装步骤**:用户需要先下载 "AMQP_Storm-1.3.3-py2.py3-none-any.whl.zip" 并解压,然后使用pip安装 "AMQP_Storm-1.3.3-py2.py3-none-any.whl" 文件。首先,运行 `pip install wheel` 如果还没有安装wheel库,...

    Storm_Lion_2021.zip

    在本例中,"readme.txt"很可能会解释"storm.exe"的具体用途,如何运行它,以及任何必要的安装步骤或注意事项。用户在处理这个压缩包时应该首先阅读这个文件,以了解如何正确、安全地使用里面的内容。 总的来说,...

    AMQP_Storm-1.2.7-py2.py3-none-any.whl.zip

    压缩包中的"使用说明.txt"文件很可能是AMQP Storm库的使用指南,包含如何导入库、设置连接参数、创建消费者和生产者、发送和接收消息等详细步骤。它可能还会涵盖错误处理、配置选项以及与其他Python库集成的最佳实践...

    AMQP_Storm-1.3.4-py2.py3-none-any.whl.zip

    压缩包中包含的`使用说明.txt`通常会提供关于如何安装、配置和使用AMQP Storm库的具体指导。用户应该仔细阅读这个文件,以确保正确无误地集成和利用这个库。 总结以上,AMQP_Storm-1.3.4-py2.py3-none-any.whl.zip...

    AMQP_Storm-1.3.0-py2.py3-none-any.whl.zip

    1. **使用说明.txt** - 这个文件通常包含关于如何安装、配置和使用AMQP Storm库的详细指导。用户应仔细阅读此文档以获取最佳实践和注意事项。 2. **AMQP_Storm-1.3.0-py2.py3-none-any.whl** - 这就是实际的Python ...

    AMQP_Storm-1.3.1-py2.py3-none-any.whl.zip

    1. **使用说明.txt**:这个文件通常包含了 AMQP_Storm 库的安装指南、使用方法、注意事项等详细信息。用户在安装和使用 AMQP_Storm 时应参考此文件以确保正确操作。 2. **AMQP_Storm-1.3.1-py2.py3-none-any.whl**:...

    基于端口的传输控制.txt

    3. **步骤3:storm-control broadcast** - **含义**:该命令用于打开对广播风暴的控制功能。广播风暴是指在一个局域网内,由于某些原因(如硬件故障或软件错误)导致大量的广播帧在网络中不断循环转发,从而消耗了...

Global site tag (gtag.js) - Google Analytics