Installation and configuration of Storm stand-alone version

Source: Internet
Author: User

Before you configure a storm environment, you first need a Linux operating system. The common Linux system is CentOS, Red Hat, Ubuntu, etc., I use Ubuntu 14.04. The system is as up to date as possible, for older versions of Ubuntu, software source support is not very good, Apt-get install error

In general, the Storm installation configuration requires the following steps:

    • Installing the Java JDK
    • Install Python
    • Installing zookeeper
    • Install ZEROMQ, JZMQ
    • Install storm
    1. Installing the Java JDK

What is a JDK? JDK (Java Development Kit), the Java SDK, Java Program developers must install the JDK to compile and debug the program.

(1) Download

Download the Java version of Linux you need in http://www.oracle.com/technetwork/java/javase/downloads/index.html

Attention:

    • Select Accept License agreement to download

The downloaded file is java-8u25-linux-x64.tar.gz and placed in the/home/zbb/setup directory.

(2) Installation

Change the working directory to the place where you want to install Java, mine is "Cd/usr/local/lib"

Extract:

Tar-zxvf/home/zbb/setup/java-8u25-linux-x64.tar.gz

Tar is a packaged and decompression command line tool under Linux, and the details can be found in "Man tar".

This command extracts the java-jdk-8u25-linux-x64.tar.gz compressed package from the place where you downloaded it (i.e.,/home/zbb/setup) to the current directory (that is,/usr/local/lib).

After the decompression, execute "LS", you can see a new directory under the current directory called "Jdk1.8.0_25"

(3) Environment variable setting

Open/etc/profile File:

sudo gedit/etc/profile

Add the following lines at the end of the file:

Export JAVA_HOME=/USR/LOCAL/LIB/JDK1. 8 . 0_25export jre_home=/usr/local/lib/jdk1. 8. 0_25/jreexport CLASSPATH=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATHexport PATH= $JAVA _home/bin: $JRE _home/bin: $PATH

(You will also edit/etc/profile many times, and you can add them all at once)

(4) environment variable read-in

Source/etc/profile

After the/etc/profile is modified, use this statement to make it effective immediately.

(5) Typing java-version in the terminal to get Java version "1.8.0_25" means that the Java environment is installed.

  2. Install Python

The newer version of Ubuntu already comes with Python 2.7, no need to install it.

Enter Python in the terminal to detect, CTRL + Z exit the python shell

  3. Installing zookeeper

Zookeeper is a reliable coordination system for large-scale distributed systems. It is mainly used for state synchronization.

  4. Installing ZEROMQ and JZMQ

Download from http://download.zeromq.org/from here Zeromq

After decompression, execute the following command:

./autogen.sh. /Configuremakemake Install

Installation and configuration of Storm stand-alone version

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.