The eclipse plug-in doesn't build using Hadoop 0.20.1 and Eclipse 3.5
(Galileo). I haven't tried to build it on 3.4, but the build errors
you're getting are the same as what you get for 3.5.
Even if you eliminate the compiler errors, the ant script doesn't
properly package the various plug-in resources. I'm not sure if the JIRA
listed below takes all this into account or not, as I haven't tried
their build, but I suspect it doesn't given your issues. You can,
however, easily fix and export the plug-in by importing the source into
your eclipse workspace, opening up any offending files, pressing
cmd+shift+o (which will import the correct packages -- the classes were
just moved, but the api is the same), and then going through the normal
PDE export process (which you should be able to find via Google).
The eclipse build issues (and maintaining the eclipse plugin) are
complicated by the fact that there's no unit tests for the plug-in, and
Eclipse doesn't publish up-to-date artifacts in any public maven or ant
repository, so its a pain to get Hudson, or whatever build server to
check it. I don't know weather or not this plug-in will ever be well
maintained unless a commercial vendor starts putting effort into it,
simply because Eclipse's APIs shift so frequently as to make maintaining
plug-ins for it quite prohibitive without some sort of commercial interest.
On 11/23/09 12:16 PM, Raymond Jennings III wrote:
Hi, it's hadoop-0.20.1 and eclipse Ganymede. I did try that prebuilt plugin
over the weekend but no luck with that on Windows. Thank you.
--- On Mon, 11/23/09, Stephen Watt<sw...@us.ibm.com> wrote:
From: Stephen Watt<sw...@us.ibm.com>
Subject: Re: Error trying to build hadoop eclipse plugin
To: common-user@hadoop.apache.org
Cc: common-user@hadoop.apache.org
Date: Monday, November 23, 2009, 12:01 PM
You'll need to be more specific about
which version of Hadoop and Eclipse
you're using. There are known issues building the plugin on
Hadoop 0.20.1.
I am in the process of providing a patch for this, in the
interim, you
can try using the plugin jar attached at
http://issues.apache.org/jira/browse/HADOOP-6360
Kind regards
Steve Watt
From:
Raymond Jennings III<raymondj...@yahoo.com>
To:
common-user@hadoop.apache.org
Date:
11/23/2009 10:46 AM
Subject:
Error trying to build hadoop eclipse plugin
I am running ant on windows from the
src/contrib/eclipse-plugin directory
Using jdk1.6.0_18:
Anyone have any experience with this? Thank you.
[ivy:retrieve] 0 artifacts copied, 2 already
retrieved (0kB/0ms)
No ivy:settings found for the default reference
'ivy.instance'. A default
insta
nce will be used
DEPRECATED: 'ivy.conf.file' is deprecated, use
'ivy.settings.file' instead
:: loading settings :: file =
E:\hadoop\hadoop-0.20.1\ivy\ivysettings.xml
compile:
[echo] contrib: eclipse-plugin
[javac] Compiling 45 source files to
E:\hadoop\hadoop-0.20.1\build\contrib\eclipse-plugin\classes
[javac]
E:\hadoop\hadoop-0.20.1\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\launch\HadoopApplicationLaunchShortcut.java:35:
cannot find symbol
[javac] symbol : class
JavaApplicationLaunchShortcut
[javac] location: package
org.eclipse.jdt.internal.debug.ui.launcher
[javac] import
org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut;
[javac]
^
[javac]
E:\hadoop\hadoop-0.20.1\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\launch\HadoopApplicationLaunchShortcut.java:49:
cannot find symbol
[javac] symbol: class
JavaApplicationLaunchShortcut
[javac]
JavaApplicationLaunchShortcut {
[javac] ^
[javac]
E:\hadoop\hadoop-0.20.1\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\launch\HadoopApplicationLaunchShortcut.java:66:
cannot find symbol
[javac] symbol : variable super
[javac] location: class
org.apache.hadoop.eclipse.launch.HadoopApplicationLa
unchShortcut
[javac]
super.findLaunchConfiguration(type,
configType);
[javac]
^
[javac]
E:\hadoop\hadoop-0.20.1\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\launch\HadoopApplicationLaunchShortcut.java:60:
method does not override or implement a method from a
supertype
[javac] @Override
[javac] ^
[javac] Note: Some input files use or
override a deprecated API.
[javac] Note: Recompile with
-Xlint:deprecation for details.
[javac] Note: Some input files use unchecked
or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked
for details.
[javac] 4 errors
BUILD FAILED
E:\hadoop\hadoop-0.20.1\src\contrib\eclipse-plugin\build.xml:63:
Compile
failed;
see the compiler error output for details.