win7编译cdh5.14.0

本文提供了一份详细的Hadoop编译指南,包括环境配置要求如Windows系统、JDK1.7、Maven3.0及以上的版本等。同时介绍了必要的软件如Findbugs、ProtocolBuffer、CMake等的安装路径及版本要求,并提供了编译步骤与注意事项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境准备

跳过所有,直接下载

官方 building.txt

Requirements:
* Windows System
* JDK 1.7+                只能是jdk1.7, require ( 1.7.0~1.7.10000),安装路径不含空格!
* Maven 3.0 or later 
* Findbugs 1.3.9 (if running findbugs)   path +=D:\SoftWare\findbugs-3.0.1\bin
* ProtocolBuffer 2.5.0  复制放进 c:\windows
* CMake 2.6 or newer  用了3.6(2.6并没有64位的) , path += C:\Program Files\CMake\bin
* Windows SDK or Visual Studio 2010 Professional 推荐使用windows sdk , win7使用(win sdk 7.1 & .net framework 4.0)
* Unix command-line tools from GnuWin32 or Cygwin: sh, mkdir, rm, cp, tar, gzip  path+=D:\SoftWare\cygwin64\bin
* zlib headers (if building native code bindings for zlib)    增加ZLIB_HOME,path+=%ZLIB_HOME%\bin

* Internet connection for first build (to fetch all Maven and Hadoop dependencies)

If using Visual Studio, it must be Visual Studio 2010 Professional (not 2012).
Do not use Visual Studio Express.  It does not support compiling for 64-bit,
which is problematic if running a 64-bit system.  The Windows SDK is free to
download here:

http://www.microsoft.com/en-us/download/details.aspx?id=8279

cdh5.14.0源码

编译

打开 Windows SDK 7.1 Command Prompt (开始菜单) , cd到源码目录

set Platform=x64 (when building on a 64-bit system)

set Platform=Win32 (when building on a 32-bit system)

mvn install -DskipTests

mvn package -Pdist,native-win -DskipTests -Dtar

剩下的就是漫长的等待,中间下载中断无数次..

成品下载


参考

http://fatkun.com/2015/05/compile-hadoop-cdh5-4-on-windows.html

https://blog.youkuaiyun.com/oneinmore/article/details/44996811

http://flashing.iteye.com/blog/2139534

http://www.aboutyun.com/thread-13878-1-1.html

https://blog.youkuaiyun.com/lee244868149/article/details/52830968
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值