美文网首页
jstorm 2.4.0部署

jstorm 2.4.0部署

作者: 曰十西言 | 来源:发表于2017-10-25 11:09 被阅读0次
    1. zookeeper部署

    1)下载zookeeper

    cd /data
    wget https://archive.apache.org/dist/zookeeper/stable/zookeeper-3.4.10.tar.gz
    tar -xvf zookeeper-3.4.10.tar.gz
    ln -s zookeeper-3.4.10 zookeeper
    cd zookeeper
    mv conf/zoo_sample.cfg conf/zoo.cfg
    mkdir -p data/logs
    

    2)修改zookeeper配置(conf/zoo.cfg)

    dataDir=/data/zookeeper/data
    dataLogDir=/data/zookeeper/data/logs
    

    3)启动zookeeper

    bin/zkServer.sh start
    
    1. jstorm部署

    1)下载jstorm

    cd /data
    wget https://github.com/alibaba/jstorm/releases/download/2.4.0/jstorm-2.4.0.tgz
    tar -xvf jstorm-2.4.0.tgz
    ln -s jstorm-2.4.0 jstorm
    

    2)修改环境变量(/etc/profile)

    export JSTORM_HOME=/data/jstorm
    export PATH=$PATH:$JSTORM_HOME/bin
    

    3)修改jstorm配置

    storm.zookeeper.servers:
         - "127.0.0.1"
    
    nimbus.host: "127.0.0.1"
    
    supervisor.slots.ports:
        - 6800
    

    4)启动

    nohup jstorm nimbus &
    nohup jstorm supervisor &
    
    1. 部署jstorm-ui
    wget http://mirrors.aliyun.com/apache/tomcat/tomcat-8/v8.5.23/bin/apache-tomcat-8.5.23.tar.gz
    tar -xvf apache-tomcat-8.5.23.tar.gz
    ln -s apache-tomcat-8.5.23 tomcat8
    cd tomcat8
    cp /data/jstorm/jstorm-ui-2.4.0.war webapps
    bin/startup.sh
    

    访问路径为:http://127.0.0.1:8080/jstorm-ui-2.4.0

    相关文章

      网友评论

          本文标题:jstorm 2.4.0部署

          本文链接:https://www.haomeiwen.com/subject/cnxqpxtx.html