hadoop-2.7.2 编译

Please refer to hadoop-2.7.2-src\BUILDING.txt and install all the required components.

1. install jdk1.7 and configure the JAVA_HOME and PATH, CLASSPATH, install apache-maven  and config MAVEN_HOME and also the PATH

use java -version, javac -version, mvn -version to validate the installation.

2. install windows sdk with the following URL : http://www.microsoft.com/en-us/download/details.aspx?id=8279

Windows SDK 7.1 Command Prompt will appear

3. download and install  cygwin64 setup-x86_64.exe,and add C:\cygwin64\binto the path so that shell command(shell command in pom.xml) can be used.

shell command , eg sh command can be used

4. download and install protoc-2.5.0-win32.zip,place in system32 folder or added to the path.

use command protoc --version to test 5. download and install zlib(firstly,I installed and then uninstall, but it also can run, I am not sure whether It is required.)

6. 

set Platform=x64

cd C:\hadoop\hadoop-2.7.2-src

mvn package -Pdist,native-win -DskipTests -Dtar  -Dmaven.javadoc.skip=true

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。