hadoop1.0.0没有eclipse 插件包,今晚自己编译了一个:
放到eclipse里面,如图:
[img]http://dl.iteye.com/upload/attachment/0067/0024/52fb629c-2ef4-3e17-a96e-6b7eb9fa5f39.png[/img]
check-contrib:
init:
[echo] contrib: eclipse-plugin
init-contrib:
ivy-download:
[get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
[get] To: D:\linux_hadoop\1.0.0\hadoop\hadoop-1.0.0\ivy\ivy-2.1.0.jar
[get] Not modified - so not downloaded
ivy-probe-antlib:
ivy-init-antlib:
ivy-init:
[ivy:configure] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = D:\linux_hadoop\1.0.0\hadoop\hadoop-1.0.0\ivy\ivysettings.xml
ivy-resolve-common:
[ivy:resolve] :: resolving dependencies :: org.apache.hadoop#eclipse-plugin;working@cjd-PC
[ivy:resolve] confs: [common]
[ivy:resolve] found commons-logging#commons-logging;1.0.4 in maven2
[ivy:resolve] found log4j#log4j;1.2.15 in maven2
[ivy:resolve] :: resolution report :: resolve 288ms :: artifacts dl 3ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| common | 2 | 0 | 0 | 0 || 2 | 0 |
---------------------------------------------------------------------
ivy-retrieve-common:
[ivy:retrieve] :: retrieving :: org.apache.hadoop#eclipse-plugin [sync]
[ivy:retrieve] confs: [common]
[ivy:retrieve] 0 artifacts copied, 2 already retrieved (0kB/10ms)
[ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
[ivy:cachepath] :: loading settings :: file = D:\linux_hadoop\1.0.0\hadoop\hadoop-1.0.0\ivy\ivysettings.xml
compile:
[echo] contrib: eclipse-plugin XXXXXXXX build.dir: D:\linux_hadoop\1.0.0\hadoop\hadoop-1.0.0\build\contrib\eclipse-plugin
[javac] D:\linux_hadoop\1.0.0\hadoop-1.0.0-src\contrib\eclipse-plugin\build.xml:64: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
jar:
[jar] Building jar: D:\linux_hadoop\1.0.0\hadoop\hadoop-1.0.0\build\contrib\eclipse-plugin\hadoop-eclipse-plugin-1.0.0.jar
BUILD SUCCESSFUL
Total time: 3 seconds
放到eclipse里面,如图:
[img]http://dl.iteye.com/upload/attachment/0067/0024/52fb629c-2ef4-3e17-a96e-6b7eb9fa5f39.png[/img]