Directory
- View Ubuntu
- Installing the JDK
- Installing Pythod
- Installing zookeeper
- Installing ZEROMQ
- Installing JZMP
- Install storm
See if Ubuntu is 32-bit or 64
uname -A
Returns the result ==> SMP Fri 00:31:26 UTC x86_64 x86_64 x86_64 gnu/linux, known as Ubuntu 64-bit
Installing the JDK
#下载64位的JDK http:// download.oracle.com/ otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz
#解压JDK tar -zxf jdk-7u79-linux-x64. tar .gz
#设置JDK Environment variables (steps 1, 2 , 3, 4 # Step 1: Open the profile file vim /etc/profile
#步骤2: Append the environment variable to the end of the profile file export java_home =/usr/local/jdk1. 7 .0_76 (modified to the installation path of the JDK) export path = $JAVA _home:$ PATH
#步骤3: Vim command mode, exit and save Profile:wq
#步骤4: Profile file takes effect source /etc/profile
Install Python
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
#解压python文件 tar zxf python-2.7. 2 . tgz
#进入python目录cd Python-2.7. 2
#编译和安装. /Configuremake doinstall
Installing zookeeper
 
#下载zookeeper wget http://apache.fayea.com/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz
#解压zookeeper tar zxf zookeeper-3.4. 4. Tar . gz
#配置环境变量 (steps 1,2, 3, 4) #步骤1: Edit the profile directory vim /etc/profile
#步骤2: Append the environment variable to the profile directory export zookeeper_home=/home/linux/software/zookeeper-3.3. 6 (modified to the path of the ZOOKEEPER file) export path= $PATH: $ZOOKEEPER/bin
#步骤3: In vim command mode, exit and save profile
: Wq
#步骤4: Profile file is in effect Source/etc/profile
Installing ZEROMQ
#下载zeromq wget http://download.zeromq.org/zeromq-2.1.7.tar.gz#编译和安装. /configure# may report a missing packet at configure, install:sudo install g++ uuid-dev make sudo Make Install sudo ldconfig
Installing JZMP
#安装gitsudoApt-getInstallgit# Download Jzmqgit clone git://Github.com/nathanmarz/jzmq.git./autogen.SH#可能会报缺包, install the following (step 1,2) can: (1)sudoApt-getInstallAutomake (2)sudoApt-getInstallLibtool auto- Make#编译和安装./Configure Make sudo Make Install
Install storm
#安装 Storm wget http:// apache.fayea.com/storm/apache-storm-0.9.6/apache-storm-0.9.6.tar.gz #解压 Storm tar -zxvf apache-storm-0.9 . 6 . tar .gz# set environment variable # 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-. 6 = $PATH: $STORM _home/ bin# step 3:vim Command mode, exit and save profile:wq# step 4:profile file takes effect source /etc/profile
Setting up a Storm profile (Storm.yaml)
#设置zookeeper storm.zookeeper.servers:-"127.0.0.1"#设置nimbus nimbus.host:"127.0.0.1"#storm本地文件目录 storm.local.dir:"/home/linux/data"#每一个端口对应storm一个slot, you can run a bolt supervisor.slots.ports for storm:-6700-6701-6702-6703#特别注意: Add a space before setting each parameter name, or you will get an error. For example, set zookeeper.servers# space storm.zookeeper.servers: #空格-“127.0.0.1”
Run Storm
#启动zookeeper (steps 1,2/home/linux/zookeeper-3.3. 6/bin# Step 2: Start Zookeeperzkserver. SH Startzkserver. SH Status /home/linux/apache-storm-0.9. 6/bin# start service storm Nimbusstorm Supervisorstorm UI
By accessing http://localhost:8080, you can see how the Storm cluster is running
Storm's stand-alone deployment in the Ubuntu environment