在linux下编译安装hadoop-2.2.0

编译环境准备
    autoconf,automake,gcc,g++,libtool,protobuf-2.5.0(注意安装完之后别忘了ldconfig),  Findbugs 1.3.9,maven3.0.5(注意maven的版本不要太高也不能太高),ant,cmake,jdk(1.6~~1.7)不要使用太高的版本;
获得hadoop源代码
   svn co [url]http://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.2.0/[/url]
   注意该版本有个编译BUG,需要在   hadoop-common-project/hadoop-auth/pom.xml中修改
    
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>jetty</artifactId>
      <scope>test</scope>
    </dependency> 
  在前面添加:
<dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-util</artifactId>
        <scope>test</scope>
 编译
     mvn  package -Pdist,native,docs,src -DskipTests -Dtar
 

你可能感兴趣的:(在linux下编译安装hadoop-2.2.0)