hadoop 1.1.2 eclipse plugin 编译

环境

 代码如下 复制代码
[andy@s41 ~]$ echo $JAVA_HOME
/usr/java/jdk1.6.0_45
[andy@s41 ~]$ uname -a
Linux s41 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[andy@s41 ~]$ cat /etc/redhat-release
CentOS release 6.4 (Final)

下载最新 eclipse

 代码如下 复制代码
wget http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/kepler/SR1/eclipse-standard-kepler-SR1-linux-gtk-x86_64.tar.gz
or
 wget http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-java-kepler-SR1-linux-gtk-x86_64.tar.gz&mirror_id=547

下载eclipse sdk 4.3.1

 代码如下 复制代码
http://www.eclipse.org/eclipse4/
wget http://mirror.bit.edu.cn/eclipse/eclipse/downloads/drops4/R-4.3.1-201309111000/eclipse-SDK-4.3.1-linux-gtk-x86_64.tar.gz

解压到/home/andy目录下。
进入插件源码目录

 代码如下 复制代码
[andy@s41 eclipse-plugin]$ pwd
/home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin

修改build.properties,增加

 代码如下 复制代码

eclipse.home=/home/andy/eclipse/
version=1.1.2
[andy@s41 eclipse-plugin]$ vi build.properties
output.. = bin/
bin.includes = META-INF/,
plugin.xml,
resources/,
classes/,
classes/,
lib/

eclipse.home=/home/andy/eclipse/
version=1.1.2

修改build.xml,增加fileset,复制两个jar文件到新目录

 代码如下 复制代码
<path id=”eclipse-sdk-jars”>
     <fileset dir=”../../../”>
<include name=”hadoop*.jar”/>
</fileset>

<target name=”jar” depends=”compile” unless=”skip.contrib”>
 <!–
<copy file=”${hadoop.root}/build/hadoop-core-${version}.jar” tofile=”${build.dir}/lib/hadoop-core.jar” verbose=”true”/>
<copy file=”${hadoop.root}/build/ivy/lib/Hadoop/common/commons-cli-${commons-cli.version}.jar”  todir=”${build.dir}/lib” verbose=”true”/>
–>
<copy file=”${hadoop.root}/hadoop-core-${version}.jar” tofile=”${build.dir}/lib/hadoop-core.jar” verbose=”true”/>
<copy file=”${hadoop.root}/lib/commons-cli-${commons-cli.version}.jar”  todir=”${build.dir}/lib” verbose=”true”/>
[andy@s41 eclipse-plugin]$ ant
[andy@s41 hadoop-1.1.2]$ cp build/contrib/eclipse-plugin/hadoop-eclipse-plugin-1.1.2.jar ~/eclipse/plugins/

此前遇到如下错误,应是eclipse sdk和sdk版本不配套的问题。

 代码如下 复制代码
compile:
[echo] contrib: eclipse-plugin
[javac] Compiling 45 source files to /home/andy/hadoop-1.1.2/build/contrib/eclipse-plugin/classes
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/HadoopPerspectiveFactory.java:22: package org.eclipse.jdt.ui does not exist
[javac] import org.eclipse.jdt.ui.JavaUI;
[javac]                          ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/MapReduceNature.java:35: package org.eclipse.jdt.core does not exist
[javac] import org.eclipse.jdt.core.IClasspathEntry;
[javac]                            ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/MapReduceNature.java:36: package org.eclipse.jdt.core does not exist
[javac] import org.eclipse.jdt.core.IJavaProject;
[javac]                            ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/MapReduceNature.java:37: package org.eclipse.jdt.core does not exist
[javac] import org.eclipse.jdt.core.JavaCore;
[javac]                            ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizard.java:24: package org.eclipse.jdt.core does not exist
[javac] import org.eclipse.jdt.core.IJavaElement;
[javac]                            ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizard.java:25: package org.eclipse.jdt.internal.ui.wizards does not exist
[javac] import org.eclipse.jdt.internal.ui.wizards.NewElementWizard;
[javac]                                           ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizard.java:36: cannot find symbol
[javac] symbol: class NewElementWizard
[javac] public class NewDriverWizard extends NewElementWizard implements INewWizard,
[javac]                                      ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizardPage.java:28: package org.eclipse.jdt.core does not exist
[javac] import org.eclipse.jdt.core.IType;
[javac]                            ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizardPage.java:29: package org.eclipse.jdt.core does not exist
[javac] import org.eclipse.jdt.core.JavaModelException;
[javac]                            ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizardPage.java:30: package org.eclipse.jdt.core.search does not exist
[javac] import org.eclipse.jdt.core.search.SearchEngine;
[javac]                                   ^
[javac] /home/andy/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizardPage.java:31: package org.eclipse.jdt.ui does not exist
时间: 2024-10-27 18:45:43

hadoop 1.1.2 eclipse plugin 编译的相关文章

Hadoop2.2.0 eclipse插件编译及Ecliipse配置说明(图文版)

一.引言: 最近在做一个城商行项目的POC测试it版本,涉及到编译Linux64bti的源码和开发插件使用,作为笔记分享给大家. 二.插件编译 Hadoop2x版本的Eclipse插件已经单独抽取成独立的开源项目,区别于之前版本直接集成到Hadoop1.x版本的模式,需要单独下载,下载网址:https://github.com/winghc/hadoop2x-eclipse-plugin 2.1 源码编译 hadoop2x-eclipse-plugin =====================

Eclipse反编译工具Jad及插件JadClipse配置(转)

Eclipse反编译工具Jad及插件JadClipse配置     Jad是一个Java的一个反编译工具,是用命令行执行,和通常JDK自带的java,javac命令是一样的.不过因为是控制台运行,所以用起来不太方便.不过幸好有一个eclipse的插件JadClipse,二者结合可以方便的在eclipse中查看class文件的源代码.下面介绍一下配置:    A.下载JadClipse,http://jadclipse.sourceforge.net/wiki/index.php/Main_Pag

Hadoop on Windows with Eclipse -04- Setup SSH daemon

Setup SSH daemon Both Hadoop scripts and Eclipse plug-in need password-less SSH to operate. This section describes how to set it up in the Cygwin environment. Configure ssh daemon Open the Cygwin command prompt. Execute the following command: ssh-hos

Hadoop on Windows with Eclipse -02- Prerequisites

Prerequisites Before we begin, make sure the following components are installed on your workstation (win 7 sp1 x64): jdk1.8.0_144 (jdk-8u144-windows-x64.exe) Eclipse Oxygen (4.7.1) (eclipse-jee-oxygen-1-win32-x86_64.zip) Installing Cygwin After insta

【转】一个不错的eclipse反编译插件

在CSDN论坛上看到的一个不错的eclipse反编译插件,感觉看起来不错的样子,因而记下,原网址是:http://topic.csdn.net/u/20121030/14/CDE52930-BAF2-4F88-B751-3797A7EB3C44.html 闲暇之余,写了一个Eclipse下的Java反编译插件:Eclipse Class Decompiler,整合了目前最好的2个Java反编译工具Jad和JD-Core,并且和Eclipse Class Viewer无缝集成,能够很方便的使用本插

基于Java的Eclipse plug-in: 语言文字解码必备

需求背景 :TVT 测试中语言文字解码 在 TVT(Translation Verification Testing 翻译验证)测 试时,我们需要不断地将翻译成各种语言的 PII(Programmed Integrated Information 程序集成信息)文件 更新到我们的资源文件中,用于我们测试.对于资源文件的管理,我们大部分时候都会用到 RTC.但就 RTC 本身,或者说 eclipse 平台本身并不提供一种途径显示这些翻译后的文字本来的样子(就是以本国文字的形 式来显示),大量的信息

用java做一个文本编辑器并提供eclipse的编译和运行功能

问题描述 用java做一个文本编辑器并提供eclipse的编译和运行功能 实现如下主要菜单:文件(新建,打开文件,保存,另存为,退出)工具(编译,运行)帮助(关于javaedit)功能要求:1编译和运行结果要能显示在图形界面的组件中:2如果文件没有保存,关闭窗口需要提示保存:3如果文件没有命名,保存需要提示保存:4编译没有保存的java文件,需要先保存再编译:5编写代码获得编译和运行结果,不能直接用console窗口显示.(代码后给下注释) 解决方案 如果你需要简单的,自己可以动手做一下,界面使

安装scala eclipse plugin导致pom.xml editor打开失败

一 问题描述     在本机搭建了基于Scala的Eclipse Plugin+scala2.10.3的开发环境, 但打开maven项目pom.xml文件时,却报空指针异常, pom editor打开失败.     查找了网上的一些资料,发现这是scala-ide-play2的一个BUG导致的.     可以参考如下信息:     scala-ide-play2 Version 0.4.0.v-2_10-201308021043-8c62ead breaks Maven POM Editor #

操作-eclipse不编译修改后的代码,仍运行上一次的结果

问题描述 eclipse不编译修改后的代码,仍运行上一次的结果 好像没进行过什么特殊的操作(运行过一次Tomcat),突然就这样了,修改完代码后,运行,以前都提示是否保存修改,现在根本不提示直接运行上一次的结果,请教各位大神该怎么解决(Android程序和Java都这样,重启,clean都不管用) 解决方案 用debug run试试 别用run 解决方案二: 你试试把eclipse的自动构建的选项给勾上 解决方案三: 居然clean都不好使?选择clean all也不好使么? 还有一个问题可能是