zoukankan      html  css  js  c++  java
  • CDH4.5.0源代码编译

     

    Unable to load native-hadoop library for your platform解决

    安装maven

    1 cmake-2.8.12.1.tar.gz

    cd cmake-2.8.12.1
      ./bootstrap
      make
      sudo make install

    2 安装ant
    export ANT_HOME=/usr/local/apache-ant-1.9.3  
    export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
    source /etc/profile
    检查 ant -version

    3 findbugs-2.0.2-source.zip
    wget http://prdownloads.sourceforge.net/findbugs/findbugs-2.0.3.tar.gz?download
    tar zxvf findbugs-2.0.3.tar.gz -C /usr/local/
    mv /usr/local/findbugs-2.0.3/ /usr/local/findbugs
    vi /etc/profile
    export FINDBUGS_HOME=/usr/local/findbugs

    4 protobuf
    wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz

    root 用户下
    ./configure && make && make install

    protoc --version

    export PROTOC_HOME=/home/hadoop/soft/protobuf-2.5.0
    export PATH=$PATH:$PROTOC_HOME/src

    5 cd $HADOOP_HOME/src
    mvn package -DskipTests -Pdist,native -Dtar > install2.log

    错误1
    中间报jdk版本错误
    下载jdk jdk-6u27-linux-x64.bin
    chmod u+x jdk-6u27-linux-x64.bin
    ./jdk-6u27-linux-x64.bin

    错误2
    CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
         [exec]   Could NOT find ZLIB (miss-- Configuring incomplete, errors occurred!

    解决 安装zlib

    $tar -xvzf zlib-1.2.3.tar.gz
    $cd zlib-1.2.3.tar.gz
    $./configure
    $make
    $sudo make install
    也可以  sudo apt-get install zlib1g-dev.

    错误3
    Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
         [exec]   system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES


    ubuntu:
     sudo apt-get install openssl
     sudo apt-get install libssl-dev .
    centos:
      yum install openssl
      yum install openssl-devel



    其他应该没什么问题了,










  • 相关阅读:
    [CF1106E] 边界有问题
    UOJ 67 新年的毒瘤
    BZOJ 1093 [ZJOI2007]最大半连通子图
    codeforces round#510
    codeforces round#509
    杂谈
    BZOJ 3007 [SDOI2012]拯救小云公主
    BZOJ 1799
    BZOJ 3329
    BZOJ 3209 花神的数论题
  • 原文地址:https://www.cnblogs.com/chengxin1982/p/3862289.html
Copyright © 2011-2022 走看看