如何在Windows 8 64位上构建Hadoop 2.7.0?

时间:2015-04-24 00:18:36

标签: java windows hadoop

我无法在Windows 8系统上构建Hadoop。我一直收到这个错误:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (compile-ms-native-dll) on project hadoop-common: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (compile-ms-native-dll) on project hadoop-common: Command execution failed.

我已安装:

  • Windows系统
  • JDK 1.8
  • Maven 3.0或更高版本
  • ProtocolBuffer 2.5.0
  • CMake 3.2
  • Windows SDK 7.1
  • 首次构建的Internet连接(以获取所有Maven和Hadoop依赖项)
  • GnuWin32和Git的指示,如sh和喜欢......

来自Building.txt: " Unix命令行工具也包含在Windows Git包中 可以从http://git-scm.com/download/win下载。"

我尝试安装的Hadoop版本是2.7.0 ...感谢任何帮助

编辑:

我的PATH变量:

  

C:\ ProgramData \ Oracle \ Java \ javapath; C:\ Program Files   (x86)\ Parallels \ Parallels T.   ools \应用; C:\ WINDOWS \ SYSTEM32; C:\ WINDOWS; C:\ WINDOWS \ SYSTEM32 \ WBEM; C:\ WIN   dows \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files(x86)\ Windows   套件\ 8.1 \ Wi ndows Performance Toolkit \; C:\ Program Files \ Microsoft SQL   Server \ 110 \ Tools \ Binn \; C:\ Program Files(x86)\ Microsoft   SDKs \ TypeScript \ 1.0 \; C:\ Program Files \ Microsof t SQL   服务器\ 120个\工具\ BINN \; C:\ Ruby21-64 \ BIN; C:\ PROGRAM   文件\ SlikSvn \ BIN; C:\ P   ython27; C:\ Java的\ JDK \ BIN; C:\蚂蚁\ BIN; C:\ Python27; C:\ Python27 \ Scripts中; C:\ PROGRAM   文件(x86)\ Microsoft SQL   Server \ 110 \ Tools \ Binn \ ManagementStudio \; c:\ Program File s   (x86)\ Microsoft SQL Server \ 110 \ Tools \ Binn \; c:\ Program Files   (x86)\ Microsoft Vi sual Studio   10.0 \ Common7 \ IDE \ PrivateAssemblies \; c:\ Program Files(x86)\ Microsoft SQL Server \ 110 \ DTS \ Binn \; C:\ Program Files \ Microsoft SQL   Server \ 110 \ DTS \ Binn \; C:\ Program Files   (86)\ CMake的\ BIN; C:\ protobuf的; C:\行家\ BIN; C:\爪哇\ JDK \ BIN; C:\ gnuwi   N32 \ BIN; C:\ Hadoop的\ BIN; C:\ Hadoop的\ sbin目录; C:\ CMake的\ BIN; C:\ WINDOWS \ Microsoft.NET \框架   work64 \ v4.0.30319; C:\ cygwin64; C:\ Program Files \ Microsoft Windows   性能太lkit \; C:\ Program Files(x86)\ Git \ cmd; C:\ Program Files   (86)\ GIT中\ BIN

1 个答案:

答案 0 :(得分:0)

在制作新的Windows虚拟机并仅安装必需的先决条件后,我能够构建Hadoop。我想之前我有一些混乱的环境变量。

编辑:

您可以在此处找到生成的文件:https://dl.dropboxusercontent.com/u/35333361/hadoop-2.7.0.7z