hadoop源码编译
2016-02-23 17:49
441 查看
1.下载源码
2.安装必要软件,并将下述软件的bin添加到path环境变量里
a).apache-maven-3.3.9
b).protobuf-2.5.0
c).winsdk7.1
d).getGnuWin32或cygwin(必装软件net下openssl、openssh)
e).cmake(非必须)
f).jdk1.6+
3.设置环境变量
JAVA_HOME,
M2_HOME,
Platform=x64(64位的设为x64,32位为x32)
4.注解掉${hadoop-src}\hadoop-common-project\hadoop-common中pom.xml的下面部分:
如果不注释的话,安装过程中会报错:
5.打开winsdk7.1的命令窗口Windows SDK 7.1 Command Prompt,进入hadoop源码目录,执行以下命令进行install:
6.编译eclipse工程
2.安装必要软件,并将下述软件的bin添加到path环境变量里
a).apache-maven-3.3.9
b).protobuf-2.5.0
c).winsdk7.1
d).getGnuWin32或cygwin(必装软件net下openssl、openssh)
e).cmake(非必须)
f).jdk1.6+
3.设置环境变量
JAVA_HOME,
M2_HOME,
Platform=x64(64位的设为x64,32位为x32)
4.注解掉${hadoop-src}\hadoop-common-project\hadoop-common中pom.xml的下面部分:
<!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <id>compile-ms-winutils</id> <phase>compile</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>msbuild</executable> <arguments> <argument>${basedir}/src/main/winutils/winutils.sln</argument> <argument>/nologo</argument> <argument>/p:Configuration=Release</argument> <argument>/p:OutDir=${project.build.directory}/bin/</argument> </arguments> </configuration> </execution> <execution> <id>compile-ms-native-dll</id> <phase>compile</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>msbuild</executable> <arguments> <argument>${basedir}/src/main/native/native.sln</argument> <argument>/nologo</argument> <argument>/p:Configuration=Release</argument> <argument>/p:OutDir=${project.build.directory}/bin/</argument> <argument>/p:CustomSnappyPrefix=${snappy.prefix}</argument> <argument>/p:CustomSnappyLib=${snappy.lib}</argument> <argument>/p:CustomSnappyInclude=${snappy.include}</argument> <argument>/p:RequireSnappy=${require.snappy}</argument> </arguments> </configuration> </execution> </executions> </plugin>-->
如果不注释的话,安装过程中会报错:
ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on project hadoop-common: Command execution failed.
5.打开winsdk7.1的命令窗口Windows SDK 7.1 Command Prompt,进入hadoop源码目录,执行以下命令进行install:
mvn install -DskipTests
6.编译eclipse工程
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
相关文章推荐
- 从源码安装Mysql/Percona 5.5
- 详解HDFS Short Circuit Local Reads
- Hadoop_2.1.0 MapReduce序列图
- 使用Hadoop搭建现代电信企业架构
- 单机版搭建Hadoop环境图文教程详解
- 浅析Ruby的源代码布局及其编程风格
- hadoop常见错误以及处理方法详解
- asp.net 抓取网页源码三种实现方法
- JS小游戏之仙剑翻牌源码详解
- JS小游戏之宇宙战机源码详解
- jQuery源码分析之jQuery中的循环技巧详解
- 本人自用的global.js库源码分享
- java中原码、反码与补码的问题分析
- hadoop 单机安装配置教程
- hadoop的hdfs文件操作实现上传文件到hdfs
- hadoop实现grep示例分享
- PHP网页游戏学习之Xnova(ogame)源码解读(六)
- C#获取网页HTML源码实例
- PHP网页游戏学习之Xnova(ogame)源码解读(八)
- PHP网页游戏学习之Xnova(ogame)源码解读(四)