hadoop maven complie

旧版本用ant编译,check下里面提供build.xml


新版没有build.xml文件了,用maven


Requirements:


* Unix System
* JDK 1.6
* Maven 3.0
* Findbugs 1.3.9 (if running findbugs)
* ProtocolBuffer 2.4.1+ (for MapReduce and HDFS)【必须】
* CMake 2.6 or newer (if compiling native code)【g++,gcc】
* Internet connection for first build (to fetch all Maven and Hadoop dependencies)

然后在check下的source目录下

 mvn package -Pdist -DskipTests -Dtar

你可能感兴趣的:(hadoop maven complie)