Issue Details (XML | Word | Printable)

Key: HADOOP-3744
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Christophe Taton
Reporter: Aaron Kimball
Votes: 9
Watchers: 15
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Eclipse Plugin does not work with Eclipse Ganymede (3.4)

Created: 10/Jul/08 07:29 PM   Updated: 20/Aug/09 03:09 PM
Return to search
Component/s: contrib/eclipse-plugin
Affects Version/s: 0.16.4, 0.17.0, 0.19.2
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3744.patch 2008-07-31 09:45 PM Doug Cutting 2 kB
File Licensed for inclusion in ASF works HadoopApplicationLaunchShortcut.diff 2008-12-11 10:20 AM Tvrtko Bedekovic 1 kB
Environment: Windows XP with Eclipse "Ganymede" 3.4
Issue Links:
Reference
 


 Description  « Hide
The newest version of Eclipse seems incompatible with the plugin. The plugin as released in 0.16.4 will allow you to add/remove MapReduce servers, and will allow you to browse/manipulate the DFS in the DFS Browser, but will not allow you to run programs. Clicking "Run As * Run On Hadoop" will simply not cause the run-on-hadoop server selection window to appear. No error message is given.

Dropping the 0.17.1 copy of the plugin JAR into the eclipse/plugins/ directory does not fix the issue; it is in fact worse: Eclipse does not seem to regard the 0.17 plugin as real. No "MapReduce Perspective" is made available in the perspectives selection window.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Christophe Taton added a comment - 10/Jul/08 08:50 PM
Hi Aaron,
I tried running the 0.17.1 plugin jar out of the box and on Eclipse 3.4 (on Linux), and the plugin is effectively recognized in my case and shows the Map/Reduce perspective correctly; however, as you point out, the "Run on Hadoop" shortcut fails silently in this configuration.
I have still not found out the origin of this problem.
Could you double check that 0.17.1 is not recognized at all on your install, as it is at least recognized on mine.
I'm actually cleaning and updating the plug-in, but I admit my thesis does not allow me to spend as much time as I would like to on this...
Cheers

Aaron Kimball added a comment - 10/Jul/08 09:56 PM - edited
I just performed the following steps on my Windows XP machine:

1) Removed hadoop-0.16.4-eclipse-plugin.jar from eclipse/plugins/
2) Copied hadoop-0.17.1-eclipse-plugin.jar from a clean unzip of hadoop-0.17.1.tar.gz into that directory.
3) Start Eclipse Ganymede. When prompted for a workspace, I chose a new empty directory
4) Go to the workbench and "Open Perspective". MapReduce is missing from the list. Furthermore, Help * About * Plugin Details does not list the Hadoop plugin in its list.

That having been said, under "Configuration details," under "Configured plugins," it does list:
file:/C:/home/aaron/Desktop/eclipse-ganymede/plugins/hadoop-0.17.1-eclipse-plugin.jar


Doug Cutting added a comment - 31/Jul/08 09:45 PM
I'm trying to build a 0.18.0 release using Eclipse 3.2, and the Eclipse build is failing because the signature of org.eclipse.core.runtime.Status has changed. Could this be the same problem?

I've attached a quick hack that makes things compile, but, as a non-eclipse user, I have no idea if they actually run.


Dave Latham added a comment - 15/Aug/08 10:11 PM - edited
I can verify Aaron's account - I see the same thing. The plugin shows up under the configuration details (but not plug-in) details, nor is the perspective available. Eclipse Ganymede (3.4) hadoop plugin 0.17.1.

Aaron Kimball added a comment - 09/Sep/08 03:11 AM
To follow up: Using v0.18.0 with Doug's patch from https://issues.apache.org/jira/browse/HADOOP-3884, it seems like we're now back to the 0.16.4 state. Plugin is "real" and can see the DFS, etc., but the run dialog still doesn't show up.

Tsz Wo (Nicholas), SZE added a comment - 09/Oct/08 08:52 PM
Eclipse plugin also has some problem in Windows, see HADOOP-4310.

Tvrtko Bedekovic added a comment - 11/Dec/08 10:20 AM
I've sent an email to Christophe Taton but got no reply so I'm posting here.

I'm attaching a diff of HadoopApplicationLaunchShortcut.java with 2 lines that need to be changed/added so that the plugin builds and works correctly for Eclipse 3.4 Ganymede.


Greg Bayer added a comment - 16/Jun/09 09:05 PM
Applying HadoopApplicationLaunchShortcut.diff and rebuilding the plugin works well. I am using the plugin daily with Eclipse 3.4.

As of last week at Hadoop Summit '09, there are still many people under the impression that the Hadoop Eclipse plugin is broken. Is there any reason this fix hasn't been rolled into recent Hadoop releases and announced more publicly?


stephen mulcahy added a comment - 20/Aug/09 03:08 PM
I ran into the same problem with Eclipse 3.4 on Debian Linux 5.0 - I could browse DFS with the eclipse plugin from hadoop 0.19.2 but I couldn't run a Hadoop Job.

I checked out http://svn.apache.org/repos/asf/hadoop/common/tags/release-0.19.2/ and rebuilt the plugin against my local eclipse as follows,

ant -Declipse.home=/usr/local/eclipse clean package

and copied the resulting plugin .jar file to /usr/local/eclipse/plugins.

For some reason the MapReduce perspective was no longer available and I couldn't see any error from Eclipse. I figure maybe moving from one version of the plugin to another might have corrupted something in Eclipse?

Anyways - since I was at it, I tried installing the latest Eclipse (3.5, Galileo) and rebuilt the plugin against this version. I then installed it as above and start Eclipse.

This time the plugin works perfectly - I can both browse DFS and run a job against Hadoop. So, in conclusion, the patch works against Eclipse 3.5 (on Linux at least) also.

+1 on including this in the release.


stephen mulcahy added a comment - 20/Aug/09 03:09 PM
Added 0.19.2 to list of affected versions