Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Construction of storm (stand-alone version)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Write down the steps for setting up the storm environment for testing:

I. system

Redhat6.5_x86

II. Required software packages

Jdk-7u67-linux-x64.tar.gz

Jzmq-master.zip

Storm-0.7.1.zip

Zeromq-2.1.7.zip

Zookeeper-3.3.5.tar.gz

3. Build steps (default python2.6.6):

1. Installation of jdk

Tar zxf jdk-7u67-linux-x64.tar.gz-C / usr/local/services

Cd / usr/local/services

Ln-sf jdk1.7.0_67 jdk

Vim / etc/profile

Export JAVA_HOME=/usr/local/services/jdk

Export PATH=$PATH:$JAVA_HOME/bin

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Source / etc/profile

Java tests whether jdk installs OK

2. Installation of zookeeper

Tar zxf zookeeper-3.3.5.tar.gz-C / usr/local/services/

Cd / usr/local/services

Ln-sf zookeeper-3.3.5 zookeeper

Vim / etc/profile

Export ZOOKEEPER_HOME=/usr/local/services/zookeeper

Export PATH=$PATH:$ZOOKEEPER_HOME/bin

Cp conf/zoo_sample.cfg conf/zoo.cfg

Vim conf/zoo.cfg

DataDir=/usr/local/services/zookeeper/data

DataLogDir=/usr/local/services/zookeeper/log

Vim bin/zkEnv.sh

ZOO_LOG_DIR= "/ usr/local/services/zookeeper/log"

. / bin/zkServer.sh start starts zookeeper

. / bin/zkServer.sh status to view the status of zookeeper

3. Installation of storm

Install the package jzmq-master.zip,zeromq-2.1.7.zip that storm depends on before installing storm

Storm's dependency package relies on these tools. To avoid reporting errors, you can install it first.

Yum-y install gcc* e2fsprogs * libuuid* libtool*

Unzip zeromq-2.1.7.zip

Cd zeromq-2.1.7

. / configure-- prefix=/usr/local/services/

Make&&make install

Ldconfig-v

Unzip jzmq-master.zip

Cd jzmq-master.zip

. / autogen.sh

. / configure-prefix=/usr/local/services/-with-zeromq=PREFIX

Make&&make install

Unzip storm-0.7.1.zip

Mv storm-0.7.1 / usr/local/services/storm-0.7.1

Ln-sf storm-0.7.1 storm

Vim / etc/profile

Export STORM_HOME=/usr/local/services/storm

Export PATH=$PATH:$STORM_HOME/bin

Source / etc/profile

Vim conf/storm.yaml

Nimbus.host: "localhost"

Storm.local.dir: "/ usr/local/services/storm/data"

Storm.zookeeper.servers:

-"localhost"

Storm.zookeeper.port: 2181

Vim log4j/storm.log.properties

Log4j.appender.A1.File = / usr/local/services/storm/logs/$ {logfile.name}

Start storm

Storm nimbus&

Storm supervisor&

Storm ui&

Jps check the status.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report