zookeeper 源码下载stable版本!!!
zookeeper 源码编译
-
ant 官网下载
-
ivy 官网下载
-
ivysetting.xml 用阿里云和本地nexus加速下载jar包
<ivysettings> <property name="aliyun" value="http://maven.aliyun.com/nexus/content/groups/public/" override="false"/> <property name="local" value="http://127.0.0.1:8081/repository/maven-public/" override="false"/> <property name="local-maven2-pattern" value="/home/fangbin/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision]" override="false" /> <property name="repo.maven.org" value="https://repo1.maven.org/maven2/" override="false"/> <property name="repo.jboss.org" value="https://repository.jboss.org/nexus/content/groups/public/" override="false"/> <property name="maven2.pattern" value="[organisation]/[module]/[revision]/[module]-[revision]"/> <property name="maven2.pattern.ext" value="${maven2.pattern}.[ext]"/> <include url="${ivy.default.conf.dir}/ivyconf-local.xml"/> <settings defaultResolver="default"/> <resolvers> <ibiblio name="maven2" root="${repo.maven.org}" pattern="${maven2.pattern.ext}" m2compatible="true"/> <ibiblio name="jboss-maven2" root="${repo.jboss.org}" pattern="${maven2.pattern.ext}" m2compatible="true"/> <ibiblio name="aliyun" root="${aliyun}" pattern="${maven2.pattern.ext}" m2compatible="true"/> <ibiblio name="local" root="${local}" pattern="${maven2.pattern.ext}" m2compatible="true"/> <chain name="default" dual="true"> <filesystem name="local-maven-2" m2compatible="true" local="true"> <ivy pattern="${local-maven2-pattern}.pom" /> <artifact pattern="${local-maven2-pattern}(-[classifier]).[ext]" /> </filesystem> <resolver ref="local"/> <!--<resolver ref="aliyun"/> <resolver ref="maven2"/> <resolver ref="jboss-maven2"/>--> </chain> </resolvers> </ivysettings>
- 编译 命令为 ant eclipse
zookeeperserver 启动入口
- 根据 zkServer.sh 分析 服务端启动入口为 QuorumPeerMain
- 客户端入口为 ZooKeeperMain
来源:oschina
链接:https://my.oschina.net/u/4287233/blog/3440302