storm平台搭建中需要安装的软件和安装方法

来源:互联网 发布:电脑自动朗读软件 编辑:程序博客网 时间:2024/06/16 03:33

Installing native dependencies

  •        Page History    

The native dependencies are only needed on actual Storm clusters. When running Storm in local mode, Storm uses a pure Java messaging system so that you don't need to install native dependencies on your development machine.

Installing ZeroMQ and JZMQ is usually straightforward. Sometimes, however, people run into issues with autoconf and get strange errors. If you run into any issues, please email theStorm mailing list or come get help in the #storm-user room on freenode.

Storm has been tested with ZeroMQ 2.1.7, and this is the recommended ZeroMQ release that you install. You can download a ZeroMQ releasehere. Installing ZeroMQ should look something like this:

wget http://download.zeromq.org/zeromq-2.1.7.tar.gztar -xzf zeromq-2.1.7.tar.gzcd zeromq-2.1.7./configuremakesudo make install

JZMQ is the Java bindings for ZeroMQ. JZMQ doesn't have any releases (we're working with them on that), so there is risk of a regression if you always install from the master branch. To prevent a regression from happening, you should instead install fromthis fork which is tested to work with Storm. Installing JZMQ should look something like this:

#install jzmqgit clone https://github.com/nathanmarz/jzmq.gitcd jzmq./autogen.sh./configuremakesudo make install

To get the JZMQ build to work, you may need to do one or all of the following:

  1. Set JAVA_HOME environment variable appropriately
  2. Install Java dev package (more info here for Mac OSX users)
  3. Upgrade autoconf on your machine
  4. Follow the instructions in this blog post

If you run into any errors when running ./configure, this thread may provide a solution.

原创粉丝点击