Skip to content

Installing Storm on Ubuntu Server 12.04.1 LTS

Kaain edited this page Nov 27, 2012 · 4 revisions

add Java oracle Repo

sudo add-apt-repository ppa:webupd8team/java

add ZeroMQ

sudo add-apt-repository ppa:chris-lea/zeromq

Update tree

sudo apt-get update
sudo apt-get upgrade

JAVA INSTALL

sudo apt-get install oracle-java6-installer
export JAVA_HOME=/usr/lib/jvm/java-6-oracle

INSTALL SOME STUFF

sudo apt-get install git -y
sudo apt-get install pkg-config -y
sudo apt-get install libtool -y
sudo apt-get install automake -y
//sudo apt-get install python-setuptools
//sudo easy_install pip
//apt-get install libzmq-dev -y
//sudo apt-get install python-zmq
sudo apt-get install uuid-dev
sudo apt-get install autoconf

ZMQ

Storm - Installing-native-dependencies

wget http://download.zeromq.org/zeromq-2.1.7.tar.gz
tar -xvf zeromq-2.1.7.tar.gz
rm zeromq-2.1.7.tar.gz
cd zeromq-2.1.7
./configure
make
sudo make install

JZMQ

jzmq - github

Storm - Installing-native-dependencies

git clone git://github.com/zeromq/jzmq.git
cd jzmq/
./autogen.sh
./configure
make
sudo make install

ZOOKEEPER for Standalone

Zookeeper

change config for other stuff

wget http://mirror.derwebwolf.net/apache/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz
tar -xvf zookeeper-3.4.5.tar.gz
rm zookeeper-3.4.5.tar.gz
nano zookeeper-3.4.5/conf/zoo.cfg

zoo.cfg

tickTime=2000
dataDir=/var/lib/zookeeper
clientPort=2181

STORM INSTALL

Setting-up-a-Storm-cluster

wget https://github.com/downloads/nathanmarz/storm/storm-0.9.0-wip3.zip
unzip storm-0.9.0-wip3.zip
mkdir storm
mv storm-0.9.0-wip3/* storm/
rm -r storm-0.9.0-wip3
rm storm-0.9.0-wip3.zip
nano storm/conf/storm.yaml

storm.yaml for local testing

Setting-up-a-Storm-cluster

storm.local.dir: "/tmp/storm"
storm.zookeeper.servers:
  - "localhost"
storm.zookeeper.port: 2181
nimbus.host: "localhost"
supervisor.slots.ports:
    - 6700
    - 6701
    - 6702
    - 6703