Ubuntu下安装单机版Storm运行环境

前端之家收集整理的这篇文章主要介绍了Ubuntu下安装单机版Storm运行环境前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1、安装ubuntu

2、安装jdk

安装完jdk后在.bashrc文件的末尾输入下面语句配置jdk:

export JAVA_HOME=/usr/local/Java/jdk1.8.0_121
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

/usr/local/java/jdk1.8.0_121是我安装的jdk目录。

3、下载Storm1.1.0

4、配置Storm1.1.0

1) tar -zxvf storm-1.1.0.tar.gz

2) sudo mv storm-1.1. /usr/local/storm

3) sudo chmod -R 777/usr/local/storm

4) sudo vim /etc/profile

在profile文件添加下面语句:

export STORM_HOME=/usr/local/storm
export PATH=${STORM_HOME}/bin:$PATH

5) source /etc/profile

6) echo $STORM_HOME

7) storm version

显示如下验证storm配置成功。

Running: /usr/local/java/jdk1.8.0_121/bin/java -client -Ddaemon.name= -Dstorm.options= -Dstorm.home=/usr/local/storm -Dstorm.log.dir=/usr/local/storm/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/storm/lib/servlet-api-2.5.jar:/usr/local/storm/lib/log4j-api-2.8.jar:/usr/local/storm/lib/clojure-1.7.0.jar:/usr/local/storm/lib/kryo-3.0.3.jar:/usr/local/storm/lib/objenesis-2.1.jar:/usr/local/storm/lib/ring-cors-0.1.5.jar:/usr/local/storm/lib/log4j-core-2.8.jar:/usr/local/storm/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/storm/lib/slf4j-api-1.7.21.jar:/usr/local/storm/lib/asm-5.0.3.jar:/usr/local/storm/lib/reflectasm-1.10.1.jar:/usr/local/storm/lib/storm-rename-hack-1.1.0.jar:/usr/local/storm/lib/storm-core-1.1.0.jar:/usr/local/storm/lib/disruptor-3.3.2.jar:/usr/local/storm/lib/minlog-1.3.0.jar:/usr/local/storm/lib/log4j-slf4j-impl-2.8.jar:/usr/local/storm/conf org.apache.storm.utils.VersionInfo Storm 1.1.0 URL https://git-wip-us.apache.org/repos/asf/storm.git -r e40d213de7067f7d3aa4d4992b81890d8ed6ff31 Branch (no branch) Compiled by ptgoetz on 2017-03-21T17:04Z From source with checksum 4ddc442e8b804654454ab26fbec6348

猜你在找的Ubuntu相关文章