Zookeeper源码环境搭建
来源:互联网 发布:php命名空间找不到类 编辑:程序博客网 时间:2024/06/05 05:48
- 到github中下载该项目
https://github.com/apache/zookeeper
下载.zip包到本地解压。
- 使用ant对源代码编译成eclipse工程
(1)下载ant
http://ant.apache.org/bindownload.cgi
(2)解压到特定目录,设置ANT_HOME(ant)和path(%ANT_HOME%\bin)
(3)打开cmd,运行ant -version,出现版本信息说明安装成功了。
(4)切换到zookeeper源码的根目录下面(下面有一个buid.xml文件),然后输入命令ant eclipse
这里来重点说说ant eclipse执行失败的问题:
上述命令会下载ant-eclipse-1.0.bin.tar.bz2文件,老是下载不成功,无法继续下去,修改源码中build.xml中的配置,将地址:
get src="http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2"更换成如下地址get src="http://ufpr.dl.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2"
- 还发现缺少依赖包 commons-collections,在ivy.xml文件中加入如下配置:
<dependency org="commons-collections" name="commons-collections" rev="3.0"/>
上述两个问题解决后,再重新执行ant eclipse命令。
0 0
- Zookeeper 源码环境搭建
- Zookeeper源码环境搭建
- 【Zookeeper源码一】Zookeeper 源码环境搭建
- Zookeeper源码学习环境搭建
- 源码分析(1)ZooKeeper源码环境搭建
- zookeeper(1)单机源码环境搭建
- cdh4.2.0源码搭建hadoop+hbase+zookeeper开发环境
- Zookeeper源码解析——本地开发环境搭建
- ZooKeeper环境的搭建
- zookeeper集群环境搭建
- zookeeper环境的搭建
- Maven搭建Zookeeper环境
- zookeeper 集群环境搭建
- Zookeeper环境搭建_me
- zookeeper环境搭建
- dubbox+zookeeper环境搭建
- zookeeper集群环境搭建
- zookeeper-02-环境搭建
- unit 8
- LeetCode-Easy部分中标签为Two Pointers 125. Valid Palindrome
- Html.DropDownListFor的选项值为字符型问题
- JQuery 定时循环任务
- 常用的富文本编辑器
- Zookeeper源码环境搭建
- 蓝桥杯_凑算式
- 多线程自增问题
- Java学习之类与对象
- 设计模式 之抽象工厂
- 同时使用两种方式启动服务
- 最全正则表达式总结:验证QQ号、手机号、Email、中文、邮编、身份证、IP地址等
- swift3.0中自定义的相机,不好别喷,给点提示,多多指教
- Android Studio多Module应用