Windows编译CDH

简介: Windows编译CDH

环境准备

官方 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.csdn.net/oneinmore/article/details/44996811

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

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

https://blog.csdn.net/lee244868149/article/details/52830968

相关文章
|
4天前
|
关系型数据库 MySQL 开发工具
windows编译poco c++库
windows编译poco c++库
|
4天前
|
Unix 编译器 开发者
Qt5.14.2 轻松掌握Qt中的压缩与解压缩:QuaZIP的神秘面纱与实战演练之windows环境编译
Qt5.14.2 轻松掌握Qt中的压缩与解压缩:QuaZIP的神秘面纱与实战演练之windows环境编译
145 0
|
4天前
|
Linux 编译器 数据安全/隐私保护
Windows10 使用MSYS2和VS2019编译FFmpeg源代码-测试通过
FFmpeg作为一个流媒体的整体解决方案,在很多项目中都使用了它,如果我们也需要使用FFmpeg进行开发,很多时候我们需要将源码编译成动态库或者静态库,然后将库放入到我们的项目中,这样我们就能在我们的项目中使用FFmpeg提供的接口进行开发。关于FFmpeg的介绍这里就不过多说明。
90 0
|
6月前
|
Go Windows
Go 交叉编译 跨平台编译(windows系统跨平台编译)
Go 交叉编译 跨平台编译(windows系统跨平台编译)
38 0
|
6月前
|
C++ Windows
masscan for windows windows编译masscan
masscan for windows windows编译masscan
163 0
masscan for windows windows编译masscan
|
7月前
|
JSON 开发工具 C++
Windows下用CMake编译JsonCpp及配置(适合新手)
Windows下用CMake编译JsonCpp及配置(适合新手)
299 0
|
7月前
|
API PHP C++
Windows下用vs2017编译和配置libcurl库(手把手教,适合新人)
Windows下用vs2017编译和配置libcurl库(手把手教,适合新人)
279 0
|
4天前
|
计算机视觉 Windows
OpenCV + CLion在windows环境下使用CMake编译, 出现Mutex相关的错误的解决办法
OpenCV + CLion在windows环境下使用CMake编译, 出现Mutex相关的错误的解决办法
18 0
|
4天前
|
前端开发 Unix 开发工具
windows使用cygwin编译Xyce
windows使用cygwin编译Xyce
27 0
|
4天前
|
开发工具 git C++
libevent-windows VS2019-cmake 编译笔记
本文主要本文主要记录个人在使用window10使用cmake编译libevent遇到了一点小问题,这里就简单的记录一下,给cmake编译项目不熟悉的朋友一点帮助记录个人在使用window10使用cmake编译libevent遇到了一点小问题,这里就简单的记录一下,给cmake编译项目不熟悉的朋友一点帮助
53 0