Storm standalone deployment in Ubuntu

Source: Internet
Author: User
In the standalone deployment directory of the Ubuntu environment, view Ubuntu installation JDK installation Pythod installation Zookeeper installation ZeroMQ installation Jzmp installation Storm check whether Ubuntu is 32-bit or 64uname-a returned result = & gt; SMPFriFeb2200: 31: 26UTC2013x86_64x86_64x86_64GNU/Linu

Storm standalone deployment in Ubuntu

Directory

  • View Ubuntu
  • Install JDK
  • Install Pythod
  • Install Zookeeper
  • Install ZeroMQ
  • Install Jzmp
  • Install Storm

Check whether Ubuntu is 32-bit or 64-bit.

Uname-

Result => SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux: Ubuntu is 64-bit.

Install JDK

# Download a 64-bit JDK

Wget http://download.Oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz

# Decompress JDK

Tar-zxf jdk-7u79-linux-x64.tar.gz

# Set JDK environment variables (Steps 1, 2, 3, and 4 below)

# Step 1: Open the profile file

Vim/etc/profile

# Step 2: append the environment variable to the end of the profile file

Export JAVA_HOME =/usr/local/jdk1.7.0 _ 76 (changed to the jdk installation path)

Export PATH = $ JAVA_HOME: $ PATH

# Step 3: exit and save the profile in vim command mode

: Wq

# Step 4: Apply the profile file

Source/etc/profile

Install Python

# Download Python
Wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz

# Decompress the python File
Tar zxf Python-2.7.2.tgz

# Go To The python directory
Cd Python-2.7.2

# Compilation and Installation
./Configure

Make

Make install

Install Zookeeper

# Download zookeeper
Wget http://apache.fayea.com/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz

# Decompress zookeeper
Tar zxf zookeeper-3.4.4.tar.gz

# Configure environment variables (Steps 1, 2, 3, and 4 below)

# Step 1: edit the profile directory
Vim/etc/profile

# Step 2: append environment variables to the profile directory
Export ZOOKEEPER_HOME =/home/linux/software/zookeeper-3.3.6 (change to path of zookeeper file)

Export PATH = $ PATH: $ ZOOKEEPER/bin

# Step 3: exit and save the profile in vim command mode
: Wq

# Step 4: Apply the profile file

Source/etc/profile

Install ZeroMQ

# Download zeromq
Wget http://download.zeromq.org/zeromq-2.1.7.tar.gz

# Compilation and Installation
./Configure

# A missing package may be reported during configure. install sudo apt-get install g ++ uuid-dev.

Make

Sudo make install

Sudo ldconfig

Install Jzmp

# Install git
Sudo apt-get install git

# Download jzmq
Git clone git: // github.com/nathanmarz/jzmq.git

./Autogen. sh

# A missing package may be reported. Install the following package (Steps 1 and 2:
(1) sudo apt-get install automake

(2) sudo apt-get install libtool auto-make

# Compilation and Installation
./Configure

Make

Sudo make install

Install Storm

# Install storm
Wget http://apache.fayea.com/storm/apache-storm-0.9.6/apache-storm-0.9.6.tar.gz

# Decompress storm

Tar-zxvf apache-storm-0.9.6.tar.gz

# Setting Environment Variables
# Step 1: edit the profile directory
Vim/etc/profile

# Step 2: append environment variables to the profile directory
Export STORM_HOME =/home/linux/software/apache-storm-0.9.6 (changed to the path of the storm file)
Export PATH = $ PATH: $ STORM_HOME/bin

# Step 3: exit and save the profile in vim command mode
: Wq

# Step 4: Apply the profile file

Source/etc/profile

Set the Storm configuration file (storm. yaml)

# Set zookeeper
Storm. zookeeper. servers:
-"127.0.0.1"
 
# Setting nimbus
Nimbus. host: "127.0.0.1"

# Storm local file directory
Storm. local. dir: "/home/linux/data"
 
# Each port corresponds to a slot of storm and can run a bolt of storm.
Supervisor. slots. ports:
-6700
-6701
-6702
-6703

# Note: Add a space before setting each parameter name. Otherwise, an error is returned. For example, set zookeeper. servers
# Space storm. zookeeper. servers:
# Space-"127.0.0.1"

Run Storm

# Start zookeeper (Steps 1 and 2)

# Step 1: Enter the bin directory under zookeeper
Cd/home/linux/zookeeper-3.3.6/bin

# Step 2: Start zookeeper
ZkServer. sh start
ZkServer. sh status # Check whether zkserver is successfully started

# Start storm
# Step 1: Go to the bin directory under storm
Cd, home, linux, apache, storm, 0.9.6, and bin
# Start the service
Storm nimbus
Storm supervisor
Storm ui

You can view the running status of the storm cluster by accessing http: // localhost: 8080.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-03/129060.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.