您的当前位置:首页正文

Hadoop1.1.2Eclipse插件编译

2020-11-09 来源:筏尚旅游网

可以直接下载我编译好的插件 hadoop-eclipse-plugin-1.1.2 http://download.csdn.net/detail/wind520/5784389 1:方法一: copy src\contrib\build-contrib.xml 到src\contrib\eclipse-plugin目录下,然后修改 ?xml version=1.0?!-- Licensed to the Apache S

可以直接下载我编译好的插件

hadoop-eclipse-plugin-1.1.2

http://download.csdn.net/detail/wind520/5784389

1:方法一:

copy src\contrib\build-contrib.xml 到src\contrib\eclipse-plugin目录下,然后修改









  
 
 
 
 

 

 
 
 
 
 

 
 
 
 
 
 
 

 

 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  

 

 

 

 
 
 

 
 
 
 
 
 
 
 
 
 
 
  

 
 

 
 

 
 

 
 

 
 
 

 
 
 
 
 
 
 
 
 
 
  
 
 
 
 


 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 Contrib Tests failed!
 

 
 
 
 
 
 
 

 
 
 
 
 


 
 
 

 
 
 
 

 
 

 
 
 
 
 

 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 	
 
 
 
 


修改src\contrib\eclipse-plugin\META-INF下的MANIFEST.MF

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MapReduce Tools for Eclipse
Bundle-SymbolicName: org.apache.hadoop.eclipse;singleton:=true
Bundle-Version: 0.18
Bundle-Activator: org.apache.hadoop.eclipse.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.jdt.launching,
 org.eclipse.debug.core,
 org.eclipse.jdt,
 org.eclipse.jdt.core,
 org.eclipse.core.resources,
 org.eclipse.ui.ide,
 org.eclipse.jdt.ui,
 org.eclipse.debug.ui,
 org.eclipse.jdt.debug.ui,
 org.eclipse.core.expressions,
 org.eclipse.ui.cheatsheets,
 org.eclipse.ui.console,
 org.eclipse.ui.navigator,
 org.eclipse.core.filesystem,
 org.apache.commons.logging
Eclipse-LazyStart: true
Bundle-ClassPath: classes/,lib/hadoop-core.jar,lib/commons-cli-1.2.jar,lib/commons-configuration-1.6.jar,lib/commons-httpclient-3.0.1.jar,lib/commons-lang-2.4.jar,lib/jackson-core-asl-1.8.8.jar,lib/jackson-mapper-asl-1.8.8.jar
Bundle-Vendor: Apache Hadoop



编译:

Buildfile: E:\big\Hadoop\hadoop-1.1.2\src\contrib\eclipse-plugin\build.xml
check-contrib:
init:
 [echo] contrib: eclipse-plugin
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\classes
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\test
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\system
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\system\classes
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\examples
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\test\logs
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: E:\big\Hadoop\hadoop-1.1.2\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 = E:\big\Hadoop\hadoop-1.1.2\ivy\ivysettings.xml
ivy-resolve-common:
[ivy:resolve] :: resolving dependencies :: org.apache.hadoop#eclipse-plugin;working@lenovo-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 335ms :: artifacts dl 8ms
	---------------------------------------------------------------------
	| | 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] 	2 artifacts copied, 0 already retrieved (419kB/114ms)
[ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
[ivy:cachepath] :: loading settings :: file = E:\big\Hadoop\hadoop-1.1.2\ivy\ivysettings.xml
compile:
 [echo] contrib: eclipse-plugin
 [javac] E:\big\Hadoop\hadoop-1.1.2\src\contrib\eclipse-plugin\build.xml:62: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
 [javac] Compiling 45 source files to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\classes
 [javac] 注意:某些输入文件使用或覆盖了已过时的 API。
 [javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
 [javac] 注意:某些输入文件使用了未经检查或不安全的操作。
 [javac] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
jar:
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\hadoop-core-1.1.2.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\hadoop-core.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-cli-1.2.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-cli-1.2.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-configuration-1.6.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-configuration-1.6.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-httpclient-3.0.1.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-httpclient-3.0.1.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\jackson-core-asl-1.8.8.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\jackson-core-asl-1.8.8.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-lang-2.4.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-lang-2.4.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\jackson-mapper-asl-1.8.8.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\jackson-mapper-asl-1.8.8.jar
 [jar] Building jar: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\hadoop-eclipse-plugin-1.1.2.jar
BUILD SUCCESSFUL
Total time: 10 seconds


方法2:

修改 eclipse-plugin目录下的build.xml 文件



 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

修改src\contrib\eclipse-plugin\META-INF下的MANIFEST.MF

同方法一的


为了和方法一步冲突,我修改buildOK.xml

编译:

Buildfile: E:\big\Hadoop\hadoop-1.1.2\src\contrib\eclipse-plugin\buildOK.xml
compile:
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\classes
 [javac] E:\big\Hadoop\hadoop-1.1.2\src\contrib\eclipse-plugin\buildOK.xml:42: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
 [javac] Compiling 45 source files to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\classes
 [javac] 注意:某些输入文件使用或覆盖了已过时的 API。
 [javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
 [javac] 注意:某些输入文件使用了未经检查或不安全的操作。
 [javac] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
jar:
 [mkdir] Created dir: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\hadoop-core-1.1.2.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\hadoop-core.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-cli-1.2.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-cli-1.2.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-configuration-1.6.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-configuration-1.6.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-httpclient-3.0.1.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-httpclient-3.0.1.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\jackson-core-asl-1.8.8.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\jackson-core-asl-1.8.8.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\commons-lang-2.4.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\commons-lang-2.4.jar
 [copy] Copying 1 file to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib
 [copy] Copying E:\big\Hadoop\hadoop-1.1.2\lib\jackson-mapper-asl-1.8.8.jar to E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\lib\jackson-mapper-asl-1.8.8.jar
 [jar] Building jar: E:\big\Hadoop\hadoop-1.1.2\build\contrib\eclipse-plugin\hadoop-eclipse-plugin-1.1.2.jar
BUILD SUCCESSFUL
Total time: 2 seconds
显示全文