测试环境 sts-2.9.2.RELEASE(eclipse3.7.2) 和hadoop1.0.3
配置ant环境
1.进入${hadoop-home}\src\contrib\eclipse-plugin目录
修改eclipse-plugin\build.properties
output.. = bin/
bin.includes = META-INF/,\
plugin.xml,\
resources/,\
classes/,\
classes/,\
lib/
eclipse.home = D:/work/springsource/sts2.9/sts-2.9.2.RELEASE
version = 1.0.3
拷贝 ${hadoop-home}\hadoop*.jar 到eclipse/plugins下
修改eclipse-plugin\build.xml
<project default="jar" name="eclipse-plugin"> . . . <path id="eclipse-sdk-jars"> <fileset dir="${eclipse.home}/plugins/"> <include name="org.eclipse.ui*.jar"/> <include name="org.eclipse.jdt*.jar"/> <include name="org.eclipse.core*.jar"/> <include name="org.eclipse.equinox*.jar"/> <include name="org.eclipse.debug*.jar"/> <include name="org.eclipse.osgi*.jar"/> <include name="org.eclipse.swt*.jar"/> <include name="org.eclipse.jface*.jar"/> <include name="org.eclipse.team.cvs.ssh2*.jar"/> <include name="com.jcraft.jsch*.jar"/> <include name="hadoop*.jar"/> </fileset> </path> . . <target name="jar" depends="compile" unless="skip.contrib"> <mkdir dir="${build.dir}/lib"/> <copy file="${hadoop.root}/hadoop-core-${version}.jar" tofile="${build.dir}/lib/hadoop-core.jar" verbose="true"/> <copy file="${hadoop.root}/lib/commons-cli-1.2.jar" todir="${build.dir}/lib" verbose="true"/> <copy file="${hadoop.root}/lib/commons-lang-2.4.jar" todir="${build.dir}/lib" verbose="true"/> <copy file="${hadoop.root}/lib/commons-configuration-1.6.jar" todir="${build.dir}/lib" verbose="true"/> <copy file="${hadoop.root}/lib/jackson-core-asl-1.8.8.jar" todir="${build.dir}/lib" verbose="true"/> <copy file="${hadoop.root}/lib/jackson-mapper-asl-1.8.8.jar" todir="${build.dir}/lib" verbose="true"/> <copy file="${hadoop.root}/lib/commons-httpclient-3.0.1.jar" todir="${build.dir}/lib" verbose="true"/> <jar jarfile="${build.dir}/hadoop-${name}-${version}.jar" manifest="${root}/META-INF/MANIFEST.MF"> <fileset dir="${build.dir}" includes="classes/ lib/"/> <fileset dir="${root}" includes="resources/ plugin.xml"/> </jar> </target> . . </project>
修改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-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
2 CMD 切入在${hadoop-home}\src\contrib\eclipse-plugin 目录执行ant 执行完 会在${hadoop-home}\build\contrib\eclipse-plugin 下生成hadoop-eclipse-plugin-1.0.3.jar
3 把jar拷入到eclipse/plugins下 即可
相关推荐
5. **构建与运行**:使用Eclipse的Build功能编译代码,然后右键项目选择`Run As -> Run on Cluster`,选择要运行的Hadoop集群,即可提交任务并监控运行状态。 通过以上步骤,开发者就可以充分利用Hadoop Eclipse ...
Eclipse集成Hadoop2.10.0的插件,使用`ant`对hadoop的jar包进行打包并...- `hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin/build.xml` 开源源地址: https://github.com/winghc/hadoop2x-eclipse-plugin
总的来说,编译Hadoop_eclipse-plugin涉及到创建新工作空间,导入项目,配置Ant构建器,修改`build.xml`以指定Eclipse SDK JARs,并使用Ant工具执行编译任务。完成这些步骤后,你就可以在Eclipse中愉快地开发和调试...
`eclipse hadoop2.7.1 plugin`是为了方便开发者在Eclipse中进行Hadoop项目开发而设计的插件。本文将详细介绍如何配置Eclipse以支持Hadoop 2.7.1,并讨论相关的知识点。 首先,配置Eclipse Hadoop插件的步骤如下: ...
1. 创建MapReduce项目:在Eclipse中新建一个Java项目,然后在项目的"Build Path"设置中,将Hadoop的JAR文件添加到类路径中,使项目具备Hadoop开发环境。 2. 编写Mapper和Reducer:根据业务需求编写处理数据的Mapper...
Tested with following eclipse version for hadoop2.7.2(http://pan.baidu.com/s/1i4plIfF): Eclipse Java EE IDE for Web Developers. Version: Mars.1 Release (4.5.1) Build id: 20150924-1200
标题“hadoop2x-eclipse-plugin-original”表明这是一个与Hadoop 2.x版本相关的Eclipse插件的原始源代码包。这里的“2x”通常代表Hadoop的2.0到2.9版本,这是一系列重要的Hadoop版本,引入了许多功能改进和性能优化...
Tested with Eclipse Java EE IDE for Web Developers. Version: Neon.1a Release (4.6.1) Build id: 20161007-1200
首先将 ${HADOOP_HOME}\src\contrib 下面的 build-contrib.xml 复制到 ${HADOOP_HOME}\src\contrib\eclipse-plugin 下面 然后修改 build-contrib.xml文件 ${basedir}"/> <property name="hadoop.root" location=...
Tested with eclipse jee luna R win32 x86 64 Any problem please give comments below Eclipse Java EE IDE for Web Developers Version: Luna Release 4 4 0 Build id: 20140612 0600
自测eclipse的Version: Juno Service Release 2 Build id: 20130225-0426使用插件成功。
hadoop-eclipse-plugin-2.7.2.jar完美兼容版 Tested with following eclipse version for hadoop2.7.2(http://pan.baidu.com/s/1i4plIfF): Eclipse Java EE IDE for Web Developers. Version: Mars.1 Release (4.5.1...
Tested with Eclipse Java EE IDE for Web Developers. Version: Neon.1a Release (4.6.1) Build id: 20161007-1200
Tested with eclipse-jee-mars-RC3-win32-x86_64 Eclipse Java EE IDE for Web Developers. Version: Mars Release Candidate 3 (4.5.0RC3) Build id: 20150604-1155
生成的`hadoop-eclipse-plugin-1.0.4.jar`文件位于 `%HADOOP_HOME%\build\contrib\eclipse-plugin` 目录下。 然而,这个初始的jar文件直接用于Eclipse会引发异常。为了解决这个问题,你需要将 `%HADOOP_HOME%\lib`...
Compiled with java ...eclipse-jee-mars-RC3-win32-x86_64 java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
ested with Eclipse Java EE IDE for Web Developers. Version: Neon.1a Release (4.6.1) Build id: 20161007-1200
这将生成一个`.zip`文件,通常是`eclipse-plugin.zip`,这个文件包含了编译好的Hadoop插件。 要安装这个插件,打开Eclipse,选择`Help` > `Install New Software`,然后点击`Add`按钮,选择`Archive`,浏览并导入...
- 构建完成后,会在`build/contrib`目录下生成`hadoop-eclipse-plugin-1.2.0.jar`文件。 ##### 7. 集成依赖库 - 将`lib`目录下的`commons-configuration-1.6.jar`、`commons-httpclient-3.0.1.jar`、`commons-...
3、修改 D:\hadoop-1.1.2\src\contrib\eclipse-plugin下的build.xml文件 Xml代码 ${hadoop.root}/build/classes"/> ${hadoop.root}/build/classes"/> 插入 Xml代码 ${hadoop.root}/hadoop-core-1.1.2.jar"/> ...