[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787032#action_12787032
 ] 

Stephen Watt commented on MAPREDUCE-1262:
-----------------------------------------

This failure is a little weird as I get no such error when I run the 
apply-patch locally against the MapReduce project trunk. The only -1 I get is 
for lack of contrib tests, everything else is +1.

The only thing I can think of is the eclipse.home that Hudson is using is using 
a version of Eclipse older than 3.4. With Eclipse 3.4 and 3.5, the plugins 
folder contains org.eclipse.jdt.debug.ui_3.3.1.v20080730_r341.jar which 
contains 
org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut. 

If the file exists, it is specifically included  in the 
src/contrib/eclipse-plugin/build.xml script and should therefore work, as you 
can see below :

<project default="jar" name="eclipse-plugin">

  <import file="../build-contrib.xml"/>

  <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"/>
    </fileset> 
  </path>



> Eclipse Plugin does not build for Hadoop 0.20.1
> -----------------------------------------------
>
>                 Key: MAPREDUCE-1262
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1262
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.20.1, 0.20.2, 0.21.0, 0.22.0
>         Environment: SLES 10, Mac OS/X 10.5.8
>            Reporter: Stephen Watt
>             Fix For: 0.20.1, 0.20.2, 0.21.0, 0.22.0
>
>         Attachments: hadoop-0.20.1-eclipse-plugin.jar, HADOOP-6360.patch
>
>
> When trying to run the build script for the Eclipse Plugin in 
> src/contrib/eclipse-plugin there are several errors a user receives. The 
> first error is that the eclipse.home is not set. This is easily remedied by 
> adding a value for eclipse.home in the build.properties file in the 
> eclipse-plugin directory.
> The script then states it cannot compile 
> org.apache.hadoop.eclipse.launch.HadoopApplicationLaunchShortcut because it 
> cannot resolve JavaApplicationLaunchShortcut on line 35:
>       import 
> org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut;
> and fails
> I believe this is because there is no jar in the eclipse.home/plugins that 
> has this class in that package. I did however find it in 
> org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut 
> which was inside in org.eclipse.jdt.debug.ui_3.4.1.v20090811_r351.jar in the 
> plugins dir of Eclipse 3.5
> Changing the import in the class in the source to the latter allows the build 
> to complete successfully. The M/R Perspective opens and works on my SLES 10 
> Linux environment but not on my Macbook Pro. Both are running Eclipse 3.5.
> To users wanting to do the same, I built this inside Eclipse. To do that I 
> added org.eclipse.jdt.debug.ui_3.4.1.v20090811_r351.jar and 
> hadoop-0.20.1-core.jar to the ant runtime configuration classpath. I also had 
> to set the version value=0.20.1 in the build.properties. You will also need 
> to copy hadoop-0.20.1-core.jar to hadoop.home/build and commons-cli-1.2.jar 
> to hadoop.home/build/ivy/lib/Hadoop/common.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to