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
网友评论