Database Reference
In-Depth Information
Install ZeroMQ
Install ZeroMQ on the server hc1nn as the Linux user hadoop into a working directory that you create for the task called
$HOME/storm/zeromq. Download version 2.1.7 of ZeroMQ from the ZeroMQ website as a zipped tar file, as follows:
[hadoop@hc1nn zeromq]$ pwd
/home/hadoop/storm/zeromq
[hadoop@hc1nn zeromq]$ wget http://download.zeromq.org/zeromq-2.1.7.tar.gz
[hadoop@hc1nn zeromq]$ ls -l
total 1836
-rw-rw-r--. 1 hadoop hadoop 1877380 May 12 2011 zeromq-2.1.7.tar.gz
Next, unpack the compressed tar file using tar -xzf . The z option accepts a file with a gzipped file extension and
unzips it. The x option extracts the tar contents, and the f option allows the tar file name to be specified:
[hadoop@hc1nn zeromq]$ tar -xzf zeromq-2.1.7.tar.gz
This shows the contents of the ZeroMQ release:
[hadoop@hc1nn zeromq]$ cd zeromq-2.1.7
[hadoop@hc1nn zeromq-2.1.7]$ ls
acinclude.m4 builds configure.in foreign Makefile.am README zeromq.spec
aclocal.m4 ChangeLog COPYING include Makefile.in src
AUTHORS config COPYING.LESSER INSTALL NEWS tests
autogen.sh configure doc MAINTAINERS perf version.sh
The configure script is used to prepare the release for a build. Note: When I initially used this script, I encountered
this error:
checking for uuid_generate in -luuid... no
configure: error: cannot link with -luuid, install uuid-dev.
The error alerted me that a dependency was missing that ZeroMQ required. To fix this, I installed the following
components as root, using the yum command:
[root@hc1nn ~]# yum install libuuid-devel gcc-c++.x86_64 libtool
Then I set up the build configuration as follows:
[hadoop@hc1nn zeromq]$ ./configure
..............
config.status: creating builds/redhat/zeromq.spec
config.status: creating src/platform.hpp
config.status: executing depfiles commands
config.status: executing libtool commands
 
Search WWH ::




Custom Search