-
Notifications
You must be signed in to change notification settings - Fork 1.8k
How to Install
- Download release package from Downloads
- Deploy Zookeeper cluster
- Install Python 2.6
- Install JDK
- Install JStorm
- Install zeroMq & JZMQ (optional)
- Deploy web ui
- Start JStorm cluster
Zookeeper installation procedure is not described here
- Please refer ZooKeeper Getting Started Guide
- Please google "How to install Zookeeper"
If the current system python version is 2.6 or higher, it's no need to install python.
You can also use https://github.com/utahta/pythonbrew to install python
> curl-kL http://xrl.us/pythonbrewinstall | bash -s $HOME/.pythonbrew/etc/bashrc && source $HOME/.pythonbrew/etc/bashrc
pythonbrew install 2.6.7
pythonbrew switch 2.6.7
Note that, if the current OS is 64-bit, please install 64-bit jdk; and if OS is a 32-bit system, then download one jdk for 32 bit.
Take jstorm-0.9.6.zip as an example
unzip jstorm-0.9.1.zip
vi ~/.bashrc
export JSTORM_HOME=/XXXXX/XXXX
export PATH=$PATH:$JSTORM_HOME/bin
vi $JSTORM_HOME/conf/storm.yaml
Please refer to JStorm Configuration
Execute following commands on the node where the jar packages are submitted.
#mkdir ~/.jstorm
#cp –f $JSTORM_HOME/conf/storm.yaml ~/.jstorm
Note: web ui and nimbus can not the same node.
Download tomcat 7.x (take apache-tomcat-7.0.37 as an example)
mkdir ~/.jstorm
cp -f $JSTORM_HOME/conf/storm.yaml ~/.jstorm
tar -xzf apache-tomcat-7.0.37.tar.gz
cd apache-tomcat-7.0.37
cd webapps
cp $JSTORM_HOME/jstorm-ui-0.9.0.war ./
mv ROOT ROOT.old
ln -s jstorm-ui-0.9.0 ROOT
cd ../bin
./startup.sh
From JStorm 0.9.0, the default RPC framework is netty, so zeromq doesn't need to be installed , if JStorm only use netty.
wget http://download.zeromq.org/zeromq-2.1.7.tar.gz
tar zxf zeromq-2.1.7.tar.gz
cd zeromq-2.1.7
./configure
make
sudo make install
sudo ldconfig
If you do not have root privileges, or the current user does not have sudo privileges, please execute "./configure --prefix=/home/xxxxx" replace "./configure", /home/xxxx is the installation target directory.
git clone git://github.com/nathanmarz/jzmq.git
cd jzmq
./autogen.sh
./configure
make
make install
If you do not have root privileges, or the current user does not have sudo privileges, execute "./configure --prefix=/home/xxxxx" replace "./configure", /home/xxxx is the installation target directory.
- Execute "nohup jstorm nimbus &" in the nimbus node, view $JSTORM_HOME/logs/nimbus.log to check if any errors.
- Execute "nohup jstorm supervisor &" in the supervisor node view $JSTORM_HOME/logs/supervisor.log to check if any errors.
- There is another script to start nimbus and supervisor, please refer to $JSTORM_HOME/bin/start.sh