从源代码构建自定义 Apache Storm rpm? [英] Build a custom Apache Storm rpm from source?

查看:40
本文介绍了从源代码构建自定义 Apache Storm rpm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试基于最新的 0.9.x 分支构建 RPM,因为 0.9.6 版本包含一个关键的错误修复,但该版本没有正式发布.

I am trying to build an RPM based on the latest 0.9.x branch, because the version 0.9.6 contains a critical bug fix but there is no official release for that version.

当我构建 RPM 并运行它时,我收到以下消息:

When I build my RPM and run it, I get this message:

storm 客户端只能在一个版本中运行.您似乎正在尝试运行从 Storm 的源代码检出的客户端.


The storm client can only be run from within a release. You appear to be trying to run the client from a checkout of Storm's source code.

您可以在以下位置下载 Storm 版本http://storm-project.net/downloads.html

You can download a Storm release at http://storm-project.net/downloads.html

此博客描述了如何从源代码构建:

This blog describes how to build the from source:

http://blog.pangyanhan.com/posts/2014-04-04-how-to-build-the-storm-client-from-source.html

但它指示运行此命令:

chmod a+x bin/build_release.sh bin/build_release.sh

我找不到 build_release.sh 脚本,我相信它自那篇博客发布后已被删除.

I cannot find the build_release.sh script, I believe it was removed since that blog posting.

关于如何构建自定义 0.9.x RPM 的任何建议?

Any suggestions on how I can build a custom 0.9.x RPM?

推荐答案

此错误消息表明您下载了错误的文件.如果您查看该文件,它可能大约为 1.5mb.您只下载了客户端.下载服务器和客户端版本(应该是77.5mb左右).

This error message tells you have downloaded the wrong file. If you have a look at the file it will probably be about 1.5mb. You have downloaded the client only. Download the server and client version (it should be about 77.5mb).

这是当前正确的链接.

解压并查看子文件夹示例(我建议使用 intellij IDEA (15.03).在示例中,您将找到可以编译的拓扑示例(通过 mvn clean package)).

unpack this and look into the subfolder examples (i recommend using intellij IDEA (15.03). In examples, you will find samples of topologies you can compile (via mvn clean package)).

我个人有一台运行(CentOS 版本 6)的虚拟机,并按照说明操作 此处.

i personally have a virtual machine with (CentOS version 6) running and followed the instructions here.

这篇关于从源代码构建自定义 Apache Storm rpm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆