paulwong

          編譯HADOOP源碼

          https://github.com/apache/hadoop/blob/trunk/BUILDING.txt

          配置 eclipse 編譯、開發 Hadoop(MapReduce)源代碼
          http://blog.csdn.net/basicthinker/article/details/6174442

          hadoop2.2.0源代碼編譯
          http://my.oschina.net/cloudcoder/blog/192224

          Apache Hadoop 源代碼編譯環境搭建
          http://qq85609655.iteye.com/blog/1986991



          1. Download code from https://codeload.github.com/apache/hadoop/zip/trunk, then unzip it, there is a folder hadoop-trunk.
            wget https://codeload.github.com/apache/hadoop/zip/trunk
            unzip trunk
          2. Install native libraries
            Ubuntu
            sudo apt-get -y install maven build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev

            Cent OS
            yum -y install  lzo-devel  zlib-devel  gcc autoconf automake libtool openssl-devel cmake
            get protobuf zip from http://f.dataguru.cn/thread-459689-1-1.html
            ./configure
            make
            make check
            make install
          3. $vi /etc/profile
            export PROTOC_HOME=/root/java/hadoop-source/protobuf-2.5.0
            export PATH=$PATH:$PROTOC_HOME/src
          4. cd to hadoop-trunk, run 
            mvn compile -Pnative
          5. cd to hadoop-maven-plugins, run
            mvn install
          6. cd to hadoop-trunk
            mvn install -DskipTests
          7. Make sure still in hadoop-trunk folder, Build Eclipse project
            mvn eclipse:eclipse -DskipTests
          8. Import the maven project to Eclipse


          posted on 2014-12-16 01:41 paulwong 閱讀(334) 評論(0)  編輯  收藏 所屬分類: HADOOP

          主站蜘蛛池模板: 安国市| 砀山县| 巴彦淖尔市| 洪雅县| 剑阁县| 岳西县| 温泉县| 汕头市| 民乐县| 从化市| 扶沟县| 灵台县| 玉屏| 彩票| 大安市| 寿宁县| 渑池县| 团风县| 上饶县| 漯河市| 阜南县| 嘉义市| 吴忠市| 石柱| 滦平县| 元谋县| 溧阳市| 桐庐县| 阜新| 铜川市| 大冶市| 新闻| 沂水县| 克什克腾旗| 南京市| 仁寿县| 横山县| 龙口市| 武鸣县| 江孜县| 庆安县|