精品专区-精品自拍9-精品自拍三级乱伦-精品自拍视频-精品自拍视频曝光-精品自拍小视频

網(wǎng)站建設(shè)資訊

NEWS

網(wǎng)站建設(shè)資訊

Ubuntu編譯Hadoop源碼有哪些異常

這篇文章主要為大家展示了“Ubuntu編譯Hadoop源碼有哪些異常”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學習一下“Ubuntu編譯Hadoop源碼有哪些異常”這篇文章吧。

創(chuàng)新互聯(lián)是一家專注于網(wǎng)站建設(shè)、網(wǎng)站設(shè)計與策劃設(shè)計,青田網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)10多年,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務涵蓋:青田等地區(qū)。青田做網(wǎng)站價格咨詢:028-86922220

錯誤1:
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc version is 'libprotoc 2.4.1', expected version is '2.5.0' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :hadoop-common

安裝protoc

wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz

(此處下載https://code.google.com/p/protobuf/downloads/list)

解壓, 進入根目錄執(zhí)行 sudo ./configure --prefix=/usr

若安裝報錯:

cpp: error trying to exec 'cc1plus': execvp: No such file or directory

則安裝g++

sudo apt-get install g++

sudo make

sudo make check

sudo make install

protoc --version 

遇到protoc: error while loading shared libraries: libprotoc.so.8: cannot open shared object file: No such file or directory時,如ubuntu系統(tǒng),默認安裝在/usr/local/lib下,需要指定/usr。sudo ./configure --prefix=/usr 必須加上--proix參數(shù),重新編譯和安裝。

錯誤2:
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-

    plugin:1.6:run (make) on project hadoop-common: An Ant BuildException has

    occured: Execute failed: java.io.IOException: Cannot run program "cmake" (in

    directory "/home/wyf/hadoop-2.0.2-alpha-src/hadoop-common-project/hadoop-

    common/target/native"): java.io.IOException: error=2, No such file or directory

    -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e

    switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please

    read the following articles:
    [ERROR] [Help 1]

    http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

安裝Cmake

sudo apt-get install cmake

錯誤3:
ERROR] Failed to execute goal org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-

alpha-3:compile (hdfs) on project hadoop-hdfs: Execution hdfs of goal

org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-3:compile failed: Plugin

org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-3 or one of its dependencies

could not be resolved: Could not transfer artifact ant:ant:jar:1.6.5 from/to

central (http://repo.maven.apache.org/maven2): GET request of:

ant/ant/1.6.5/ant-1.6.5.jar from central failed: Read timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e

switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please

read the following articles:
[ERROR] [Help 1]

http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :hadoop-hdfs

安裝ant

1.首先下載ant

百度網(wǎng)盤: apache-ant-1.9.4-bin.tar.gz

http://pan.baidu.com/s/1c0vjhBy

或則下面鏈接:

apache-ant-1.9.4-bin.tar.gz

2.解壓

    tar zxvf  apache-ant-1.9.4-bin.tar.gz

3.配置環(huán)境變量

vim ~/.bashrc

export ANT_HOME=/home/xxl/apache-ant-1.9.4

export PATH=$ANT_HOME:$PATH

source  ~/.bashrc

錯誤4:
    [ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.4.0:prot
    oc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecut
    ionException: 'protoc --version' did not return a version -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
    xception
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR]   mvn  -rf :hadoop-common

protobuf版本過低

安裝2.5版本的即可

錯誤5:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on project hadoop-snappy: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /home/ngc/Char/snap/hadoop-snappy/hadoop-snappy-read-only/maven/build-compilenative.xml:75: exec returned: 2

這個原因比較惡心,是因為Hadoop snappy對gcc版本還有要求,因為我是2012年12月份的ubuntu12.04,所以gcc已經(jīng)是4.6了,但是在google code那看到有人說他從gcc4.6回退成gcc4.4就ok了,我也是了一下,果然這個錯誤沒有了。

gcc --version #查看gcc版本

gcc (Ubuntu/Linaro 4.4.7-1ubuntu2) 4.6.3

Copyright ? 2010 Free Software Foundation, Inc.

本程序是自由軟件;請參看源代碼的版權(quán)聲明。本軟件沒有任何擔保;

包括沒有適銷性和某一專用目的下的適用性擔保。

如何回退呢?

1. apt-get install gcc-4.4

2. rm /usr/bin/gcc

3. ln -s /usr/bin/gcc-4.4 /usr/bin/gcc

之后,再gcc --version,你就會發(fā)現(xiàn),gcc已經(jīng)變成4.4.7了。

錯誤6:
.[exec] /bin/bash ./libtool --tag=CC   --mode=link gcc -g -Wall -fPIC -O2 -m64 -g -O2 -version-info 0:1:0 -L/usr/local//lib -o libhadoopsnappy.la -rpath /usr/local/lib src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.lo src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.lo  -ljvm -ldl
     [exec] /usr/bin/ld: cannot find -ljvm
     [exec] collect2: ld returned 1 exit status
     [exec] make: *** [libhadoopsnappy.la] 錯誤 1
     [exec] libtool: link: gcc -shared  -fPIC -DPIC  src/org/apache/hadoop/io/compress/snappy/.libs/SnappyCompressor.o src/org/apache/hadoop/io/compress/snappy/.libs/SnappyDecompressor.o   -L/usr/local//lib -ljvm -ldl  -O2 -m64 -O2   -Wl,-soname -Wl,libhadoopsnappy.so.0 -o .libs/libhadoopsnappy.so.0.0.1

網(wǎng)上有很多 解決/usr/bin/ld: cannot find -lxxx 這樣的博客,但是這里,我告訴你,他們的都不適用。因為這兒既不是缺什么,也不是版本不對,是因為沒有把安裝jvm的libjvm.so symbolic link到usr/local/lib。如果你的系統(tǒng)時amd64,可到/root/bin/jdk1.6.0_37/jre/lib/amd64/server/察看libjvm.so link到的地方,這里修改如下:

ln -s /root/bin/jdk1.6.0_37/jre/lib/amd64/server/libjvm.so /usr/local/lib/

問題即可解決。

錯誤7:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project hadoop-common: An Ant BuildException has occured: exec returned: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

安裝zlib-devel
ubuntu安裝是
sudo apt-get install zlib1g-dev
錯誤8:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-pipes: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...... @ 5:120 in /home/xxl/hadoop-2.5.2-src/hadoop-tools/hadoop-pipes/target/antrun/build-main.xml
[ERROR] -> [Help 1]

安裝:sudo apt-get install libssl-dev

錯誤9:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (tar) on project hadoop-dist: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...... @ 21:96 in /home/xxl/hadoop-2.5.2-src/hadoop-dist/target/antrun/build-main.xml

安裝:sudo apt-get install build-essential

sudo apt-get install libglib2.0-dev 

以上是“Ubuntu編譯Hadoop源碼有哪些異常”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!


本文名稱:Ubuntu編譯Hadoop源碼有哪些異常
網(wǎng)站路徑:http://m.jcarcd.cn/article/ipojej.html
主站蜘蛛池模板: 国产精品高清视亚洲 | 精品亚洲成a人在线 | 国产精品| 午夜影院 | 国语fre| 精品一线在线 | 国产91椰子哥高 | 国产情品一区二区 | 欧美日韩在线视频 | 精品成人精品 | 国产亚洲第一页电影 | 国内精品免费视频 | 国产免费h视频在 | 日本免费一二 | 欧美中文一区 | 国产高清αv | 精品视频| 国产精品免费专区 | 91视频导航 | 国产主播在线资源网 | 国产精品偷伦费观看 | 国产精品中文久 | 日韩成人一区三区 | 日本中文字幕第 | 国产精品色女人 | 国产在线观看视频 | 国产在线拍 | 91精品福利| 欧美日韩乱伦视频 | 最新中文字幕一区 | 欧美专区中文字幕 | 成人午夜福利后入 | 午夜欧美在线 | 区二区三区免费 | 91免费网址福利 | 国产尤物专区 | 国产日韩欧美911 | 午夜日韩福利 | 中文字幕亚洲欧美色 | 午夜在线成人精品 | 国产高清免费在 |