安装STORM

安装STORM

  1. install ZeroMQ
    wget http://download.zeromq.org/historic/zeromq- 2.1. 7.tar.gz
    tar -xzf zeromq- 2.1. 7.tar.gz
    cd zeromq- 2.1. 7
    ./configure
     //在configure时可能会报缺包,安装即可:sudo apt-get install g++ uuid-dev
    make
    sudo make install
  2. install JZMQ
    git clone https://github.com/nathanmarz/jzmq.git
    cd jzmq
    ./autogen.sh
    ./configure
    make
    sudo make install

  3. 下载并解压STORM

  4. 编辑conf/storm.yaml
    storm.zookeeper.servers:
    " 1.2.3.5 "
    " 1.2.3.6 "
    " 1.2.3.7 "
    storm. local.dir:  " /opt/folder "
    nimbus.host:  " 54.72.4.92 "
    supervisor.slots.ports:
    6700
    6701
    6702
  5. 编辑/etc/profile
    export JAVA_HOME=/usr/lib/jvm/java-7-oracle
    export STORM_HOME=/home/ubuntu/java/storm-0.8.1
    export KAFKA_HOME=/home/ubuntu/java/kafka_2.9.2-0.8.1.1
    export ZOOKEEPER_HOME=/home/ubuntu/java/zookeeper-3.4.6

    export PATH=$JAVA_HOME/bin:$STORM_HOME/bin:$KAFKA_HOME/bin:$ZOOKEEPER_HOME/bin:$PATH

  6. 制作启动命令: start-storm.sh
    storm nimbus &
    storm supervisor &
    storm ui &

安装途中如果遇到问题
http://my.oschina.net/mingdongcheng/blog/43009

你可能感兴趣的:(安装STORM)