ITPub博客

首页 > 大数据 > 可视化 > linux下编译hadoop0.20.2出现的一些问题(2)

linux下编译hadoop0.20.2出现的一些问题(2)

可视化 作者:ilovelty 时间:2012-03-16 18:24:58 0 删除 编辑

编译时间很长,错误也很长:

Buildfile: /root/hadoop-0.20.2/build.xml

 

clover.setup:

 

clover.info:

[echo]

[echo]      Clover not found. Code coverage reports disabled.

[echo]

 

clover:

 

ivy-download:

 

ivy-init-dirs:

[mkdir] Created dir: /root/hadoop-0.20.2/build/ivy

[mkdir] Created dir: /root/hadoop-0.20.2/build/ivy/lib

[mkdir] Created dir: /root/hadoop-0.20.2/build/ivy/report

[mkdir] Created dir: /root/hadoop-0.20.2/build/ivy/maven

 

ivy-probe-antlib:

 

ivy-init-antlib:

 

ivy-init:

[ivy:configure] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::

:: loading settings :: file = /root/hadoop-0.20.2/ivy/ivysettings.xml

 

ivy-resolve-common:

[ivy:resolve] :: resolving dependencies :: org.apache.hadoop#Hadoop;working@cloud00

[ivy:resolve]          confs: [common]

[ivy:resolve] :: resolution report :: resolve 883026ms :: artifacts dl 1ms

---------------------------------------------------------------------

modules            ||   artifacts

conf       | number| search|dwnlded|evicted|| number|dwnlded

---------------------------------------------------------------------

common       21        ||     0

---------------------------------------------------------------------

[ivy:resolve] :: problems summary ::

[ivy:resolve] :::: WARNINGS

[ivy:resolve]                    module not found: commons-logging#commons-logging;1.0.4

[ivy:resolve]          ==== local: tried

[ivy:resolve]            /root/.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml

[ivy:resolve]            -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:

[ivy:resolve]            /root/.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar

[ivy:resolve]          ==== maven2: tried

[ivy:resolve]            http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom

[ivy:resolve]            -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:

[ivy:resolve]            http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar

[ivy:resolve]                    module not found: log4j#log4j;1.2.15

[ivy:resolve]          ==== local: tried

[ivy:resolve]            /root/.ivy2/local/log4j/log4j/1.2.15/ivys/ivy.xml

[ivy:resolve]            -- artifact log4j#log4j;1.2.15!log4j.jar:

[ivy:resolve]            /root/.ivy2/local/log4j/log4j/1.2.15/jars/log4j.jar

[ivy:resolve]          ==== maven2: tried

[ivy:resolve]            http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-1.2.15.pom

[ivy:resolve]            -- artifact log4j#log4j;1.2.15!log4j.jar:

[ivy:resolve]            http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-1.2.15.jar

后面类似,略

在网上https://issues.apache.org/jira/browse/HDFS-1519找到解决方案如下:

hdfs/ivy.xml

 

---     
+++     
 
hdfs/src/contrib/hdfsproxy/ivy.xml
       
         name="hadoop-common"
---      rev="${hadoop-common.version}"
+++      rev="${hadoop-common.version}-SNAPSHOT"
         conf="common->default"/>
       
         name="hadoop-common-test"
---      rev="${hadoop-common.version}"
+++      rev="${hadoop-common.version}-SNAPSHOT"
         conf="common->default"/>
hdfs/src/contrib/thriftfs/ivy.xml
       
         name="hadoop-common"
---      rev="${hadoop-common.version}"
+++      rev="${hadoop-common.version}-SNAPSHOT"
         conf="common->default"/>
但是为什么我没有这些文件啊!!!在工程里面搜索ivy.xml。只找到src下的ivy.xml。发现没有找到的那些模块在这个文件里面全有!问题肯定出在这些包的路径上!找不到模块后,先在local寻找,后用maven2下载,都没有成功。对commons-logging来说,local/root/.ivy2/local/commons-logging/commons-logging/1.0.4/jars/,可以尝试将这些包从工程中搜到,然后放入该文件夹(注意改名字!)。发现还是不行,看来是我的理解错误。
于是,我仔细搜索了一下整个工程,发现ivy文件夹下的文件hadoop-core.pom,里面同样有一些关于这些jar包的配置信息,抱着试试看的心理,我将
commons-logging
      commons-logging
      ${commons-logging.version}改成:
commons-logging
      commons-logging
      ${commons-logging.version}-SNAPSHOT
结果显示:[ivy:resolve]   found commons-logging#commons-logging;1.0.4 in local
成功!
真是个让人纠结了一上午的问题!!
注意:上面两条得结合着用,此时也顾不上再做进一步的探索了,就这么地吧,反正好用了。
还有啊,那么多jar包全部需要按提示的路径放置,真是一项大工程!应该有更好的解决办法,求指教!

[ivy:resolve]         /root/.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar


[ivy:resolve]         /root/.ivy2/local/log4j/log4j/1.2.15/jars/log4j.jar


[ivy:resolve]         /root/.ivy2/local/commons-httpclient/commons-httpclient/3.0.1/jars/commons-httpclient.jar


[ivy:resolve]         /root/.ivy2/local/commons-codec/commons-codec/1.3/jars/commons-codec.jar


[ivy:resolve]         /root/.ivy2/local/commons-cli/commons-cli/1.2/jars/commons-cli.jar


[ivy:resolve]         /root/.ivy2/local/xmlenc/xmlenc/0.52/jars/xmlenc.jar


[ivy:resolve]         /root/.ivy2/local/net.java.dev.jets3t/jets3t/0.6.1/jars/jets3t.jar


[ivy:resolve]         /root/.ivy2/local/commons-net/commons-net/1.4.1/jars/commons-net.jar


[ivy:resolve]         /root/.ivy2/local/org.mortbay.jetty/servlet-api-2.5/6.1.14/jars/servlet-api-2.5.jar


[ivy:resolve]         /root/.ivy2/local/org.mortbay.jetty/jetty/6.1.14/jars/jetty.jar


[ivy:resolve]         /root/.ivy2/local/org.mortbay.jetty/jetty-util/6.1.14/jars/jetty-util.jar


[ivy:resolve]         /root/.ivy2/local/tomcat/jasper-runtime/5.5.12/jars/jasper-runtime.jar


[ivy:resolve]         /root/.ivy2/local/tomcat/jasper-compiler/5.5.12/jars/jasper-compiler.jar


[ivy:resolve]         /root/.ivy2/local/commons-el/commons-el/1.0/jars/commons-el.jar


[ivy:resolve]         /root/.ivy2/local/junit/junit/3.8.1/jars/junit.jar


[ivy:resolve]         /root/.ivy2/local/commons-logging/commons-logging-api/1.0.4/jars/commons-logging-api.jar


[ivy:resolve]         /root/.ivy2/local/org.slf4j/slf4j-api/1.4.3/jars/slf4j-api.jar


[ivy:resolve]         /root/.ivy2/local/org.eclipse.jdt/core/3.1.1/jars/core.jar


[ivy:resolve]         /root/.ivy2/local/oro/oro/2.0.8/jars/oro.jar


[ivy:resolve]         /root/.ivy2/local/org.slf4j/slf4j-log4j12/1.4.3/jars/slf4j-log4j12.jar

[ivy:resolve]         /root/.ivy2/local/org.mockito/mockito-all/1.8.0/jars/mockito-all.jar

/root/.ivy2/local/net.java.dev.jets3t/jets3t/0.6.1/jars/jets3t.jar


/root/.ivy2/local/org.mortbay.jetty/jetty-util/6.1.14/jars/jetty-util.jar


<!-- 正文结束 -->

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23774980/viewspace-1119523/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2010-04-22

  • 博文量
    1
  • 访问量
    1270