温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Strom部署安装

发布时间:2020-08-28 23:47:36 来源:网络 阅读:639 作者:ywb89757 栏目:大数据

Strom部署安装

[root@python ~]# ifconfig

eth0     Link encap:Ethernet  HWaddr00:0C:29:1D:C6:CC 

         inet addr:10.0.0.9  Bcast:10.0.0.255  Mask:255.255.255.0

         inet6 addr: fe80::20c:29ff:fe1d:c6cc/64 Scope:Link

         UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1

         RX packets:110132 errors:0 dropped:0 overruns:0 frame:0

         TX packets:62629 errors:0dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:1000

         RX bytes:134705650 (128.4 MiB)  TXbytes:4477554 (4.2 MiB)

[root@python ~]# cat /etc/hosts

127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4

::1        localhost localhost.localdomain localhost6 localhost6.localdomain6

10.0.0.9 python.host.com master

 

JAVA 安装部署

 

[root@python strombushu]# ll

total 31792

-rw-r--r-- 1 root root 14268181 Aug 18  2014 storm-0.8.2.zip

-rw-r--r-- 1 root root  1877380 May 18 03:10 zeromq-2.1.7.tar.gz

-rw-r--r-- 1 root root 16402010 Aug 18  2014 zookeeper-3.4.5.tar.gz

[root@python strombushu]#

[root@python strombushu]# mkdir /bigdata

[root@python strombushu]# tar -xvfzeromq-2.1.7.tar.gz -C /bigdata/

 

[root@python bigdata]# cd zeromq-2.1.7/

[root@python zeromq-2.1.7]# ./configure

ERROR

configure: error: cannot link with  -luuid, install uuid-dev.

 

 

[root@python zeromq-2.1.7]# yum install uuid-devel–y

[root@python zeromq-2.1.7]# yum installlibuuid-devel –y

[root@python zeromq-2.1.7]# make

[root@python zeromq-2.1.7]# make install

# jzmq java 调用 zeromq的桥梁

[root@python strombushu]# unzipjzmq-master.zip -d /bigdata/

 

[root@python bigdata]# cd /bigdata/jzmq-master/

[root@python jzmq-master]# ls

AUTHORS    ChangeLog     COPYING.LESSER  Makefile.am pom.xml      src

autogen.sh configure.in  debian          NEWS         README       test

builds     COPYING       jzmq.spec       perf        README-PERF

[root@python jzmq-master]#

[root@python jzmq-master]#

[root@python jzmq-master]# ./autogen.sh

[root@python jzmq-master]# ./configure

[root@python jzmq-master]# make

[root@python jzmq-master]# make install

 

 

[root@python strombushu]# unzip storm-0.8.2.zip-d /bigdata/

 

 

Zookeeper安装

 

[root@python strombushu]# tar -xvfzookeeper-3.4.5.tar.gz -C /bigdata/

 

 

[root@python strombushu]# cd /bigdata/

[root@python bigdata]# ll

total 16

drwxr-xr-x 9 root root  4096 May 18 03:27jzmq-master

drwxr-xr-x 8 root root  4096 Jan 12  2013 storm-0.8.2

drwxr-xr-x 10 1000  1000 4096 May 18 03:21 zeromq-2.1.7

drwxr-xr-x 10 nani games 4096 Nov  5  2012zookeeper-3.4.5

[root@python bigdata]# cd zookeeper-3.4.5/

[root@python zookeeper-3.4.5]#

[root@python zookeeper-3.4.5]# cd conf/

[root@python conf]# ls

configuration.xsl  log4j.properties  zoo_sample.cfg

[root@python conf]# cp zoo_sample.cfgzoo.cfg

[root@python conf]# cd ...

-bash: cd: ...: No such file or directory

[root@python conf]# cd ../bin/

[root@python bin]# ./zkServer.sh start

JMX enabled by default

Using config:/bigdata/zookeeper-3.4.5/bin/../conf/zoo.cfg

Starting zookeeper ... STARTED

 

[root@python bin]# jps

13817 QuorumPeerMain

13835 Jps

 

 

[root@python bin]# cd /bigdata/storm-0.8.2/

[root@python storm-0.8.2]# cd conf/

 

[root@python conf]# grep -v"^#\|^$" storm.yaml

storm.zookeeper.servers:

    - "10.0.0.9"

nimbus.host: "10.0.0.9"

[root@python conf]# cd ../bin/

[root@python bin]# ls

build_release.sh  install_zmq.sh  javadoc.sh storm  to_maven.sh

[root@python bin]# ./storm nimbus

[root@python bin]# ./storm nimbus

Exception in thread "main"  java.lang.NoClassDefFoundError: clojure.core.protocols$seq_reduce

 

[root@python ~]# java -version

java version "1.5.0"

gij (GNU libgcj) version 4.4.7 20120313  (Red Hat 4.4.7-17)

||

To

||

V

 

[root@python ~]# ll /usr/bin/java

lrwxrwxrwx 1 root root 31 May 18 03:57  /usr/bin/java -> /usr/local/jdk1.6.0_45/bin/java

[root@python ~]# java -version

java version "1.6.0_45"

Java(TM) SE Runtime Environment (build  1.6.0_45-b06)

Java HotSpot(TM) 64-Bit Server VM (build  20.45-b01, mixed mode)

 

 

修正后正常

 

[root@python bin]# ./storm ui

访问:http://10.0.0.9:8080/

 


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI