写这个系列文章,主要是想边学习,边记录;如果能够帮助到别人,那将是更好的事情;今天打算安装下hadoop,看着大家有很多的问题,很多人花了很长时间在安装上,所以我预计一周所有能够安装好;
今天解决64位操作系统的问题
系统 :redhat6.3 X86_64
安装hadoop版本 :hadoop2.2.0
java : java version "1.6.0_24"
hadoop官网上未提供64位操作系统的安装文件;所以只能下载源文件,在本地编译,借鉴这篇文章:
http://blog.csdn.net/bamuta/article/details/13506893
在安装过程中,遇到了如下的报错提示:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (default-testCompile) on project hadoop-auth: Compilation failure: Compilation failure: [ERROR] /home/chuan/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[84,13] cannot access org.mortbay.component.AbstractLifeCycle [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found
解决方法如下,在pom.xml里增加如下几行:
Index: hadoop-common-project/hadoop-auth/pom.xml
===================================================================
--- hadoop-common-project/hadoop-auth/pom.xml (revision 1543124)
+++ hadoop-common-project/hadoop-auth/pom.xml (working copy)
@@ -54,6 +54,11 @@
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<scope>test</scope>
</dependency>
今天完成编译,明日继续~~
浙公网安备 33010602011771号