Zookeeper编译文档 - 知识库

Zookeeper编译文档 编辑

Zookeeper编译文档

  • 在此之前请确保hadoop正常启动,在环境变量中配置ant路径

(1)在官网下载相应的tar包,并解压
(2)cd 进入解压的tar包目录,进入../zookeeper-3.5.1-alpha/bin/zkEnv.sh配置JAVA_HOME,回到上级目录,执行命令ant进行编译
可以查看../zookeeper-3.5.1-alpha/logs/下的日志和终端的打印来确定是否编译成功。

编译效果如下:
	[root@localhost zookeeper-3.5.1-alpha]# ant
	Buildfile: /home/xuezhiyou/zookeeper-3.5.1-alpha/build.xml

	init:

	ivy-download:

	ivy-taskdef:

	ivy-init:

	ivy-retrieve:
	[ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
	[ivy:retrieve] :: loading settings :: file = /home/xuezhiyou/zookeeper-3.5.1-alpha/ivysettings.xml
	[ivy:retrieve] :: resolving dependencies :: org.apache.zookeeper#zookeeper;3.5.1-alpha
	[ivy:retrieve] 	confs: [default]
	[ivy:retrieve] 	found jline#jline;2.11 in maven2
	[ivy:retrieve] 	found org.mortbay.jetty#jetty;6.1.26 in maven2
	[ivy:retrieve] 	found org.mortbay.jetty#jetty-util;6.1.26 in maven2
	[ivy:retrieve] 	found org.mortbay.jetty#servlet-api;2.5-20081211 in maven2
	[ivy:retrieve] 	found org.codehaus.jackson#jackson-mapper-asl;1.9.11 in maven2
	[ivy:retrieve] 	found org.codehaus.jackson#jackson-core-asl;1.9.11 in maven2
	[ivy:retrieve] 	found org.slf4j#slf4j-api;1.7.5 in maven2
	[ivy:retrieve] 	found org.slf4j#slf4j-log4j12;1.7.5 in maven2
	[ivy:retrieve] 	found commons-cli#commons-cli;1.2 in maven2
	[ivy:retrieve] 	found log4j#log4j;1.2.16 in maven2
	[ivy:retrieve] 	found io.netty#netty;3.7.0.Final in maven2
	[ivy:retrieve] 	found net.java.dev.javacc#javacc;5.0 in maven2
	[ivy:retrieve] :: resolution report :: resolve 2160ms :: artifacts dl 111ms
		---------------------------------------------------------------------
		|                  |            modules            ||   artifacts   |
		|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
		---------------------------------------------------------------------
		|      default     |   12  |   0   |   0   |   0   ||   12  |   0   |
		---------------------------------------------------------------------
	[ivy:retrieve] :: retrieving :: org.apache.zookeeper#zookeeper
	[ivy:retrieve] 	confs: [default]
	[ivy:retrieve] 	1 artifacts copied, 11 already retrieved (291kB/138ms)

	clover.setup:

	clover.info:

	clover:

	generate_jute_parser:
	[ivy:artifactproperty] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
	[ivy:artifactproperty] :: loading settings :: file = /home/xuezhiyou/zookeeper-3.5.1-alpha/ivysettings.xml
		 [move] Moving 1 file to /home/xuezhiyou/zookeeper-3.5.1-alpha/build/lib
	   [javacc] Java Compiler Compiler Version 5.0 (Parser Generator)
	   [javacc] (type "javacc" with no arguments for help)
	   [javacc] Reading from file /home/xuezhiyou/zookeeper-3.5.1-alpha/src/java/main/org/apache/jute/compiler/generated/rcc.jj . . .
	   [javacc] File "TokenMgrError.java" is being rebuilt.
	   [javacc] File "ParseException.java" is being rebuilt.
	   [javacc] File "Token.java" is being rebuilt.
	   [javacc] File "SimpleCharStream.java" is being rebuilt.
	   [javacc] Parser generated successfully.

	jute:
		[javac] Compiling 7 source files to /home/xuezhiyou/zookeeper-3.5.1-alpha/build/classes
		[javac] 警告: [options] 未与 -source 1.7 一起设置引导类路径
		[javac] 1 个警告

	compile_jute_uptodate:

	compile_jute:

	ver-gen:

	svn-revision:
		 [exec] /home/xuezhiyou/zookeeper-3.5.1-alpha/src/lastRevision.sh:行19: svn: 未找到命令

	version-info:
		 [java] Unknown REVISION number, using -1

	process-template:

	build-generated:
		[javac] Compiling 1 source file to /home/xuezhiyou/zookeeper-3.5.1-alpha/build/classes
		[javac] 警告: [options] 未与 -source 1.7 一起设置引导类路径
		[javac] 1 个警告

	compile:

	jar:
		  [jar] Building jar: /home/xuezhiyou/zookeeper-3.5.1-alpha/build/zookeeper-3.5.1-alpha.jar

	BUILD SUCCESSFUL
	Total time: 25 seconds

词条统计

浏览:42 次

字数:4161

最后编辑:2018-05-22