Hadoop Common
  1. Hadoop Common
  2. HADOOP-7382

hadoop 0.20.203.0 Eclipse Plugin does not work with Eclipse

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.20.203.0
    • Fix Version/s: None
    • Component/s: contrib/eclipse-plugin
    • Labels:
    • Environment:

      window 7 ; eclipse3.6-rc2

    • Tags:
      hadoop 0.20.203.0,eclipse plugin

      Description

      hadoop 0.20.203.0 Eclipse Plugin does not work with Eclipse,while adding DFS Locations,Advance parameters didin't hava a option hadoop.job.ugi

        Activity

        Hide
        Radim Kolar added a comment -

        In Eclipse plugin i got following error while trying to add Map/Reduce location

        An internal error occurred during: "Map/Reduce location status updater".
        org/codehaus/jackson/map/JsonMappingException

        and in eclipse log

        !ENTRY org.eclipse.core.jobs 4 2 2011-10-02 19:06:17.154
        !MESSAGE An internal error occurred during: "Map/Reduce location status updater".
        !STACK 0
        java.lang.NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException
        at org.apache.hadoop.eclipse.server.HadoopServer.getJobClient(HadoopServer.java:473)
        at org.apache.hadoop.eclipse.server.HadoopServer$LocationStatusUpdater.run(HadoopServer.java:102)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonMappingException
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 3 more

        Show
        Radim Kolar added a comment - In Eclipse plugin i got following error while trying to add Map/Reduce location An internal error occurred during: "Map/Reduce location status updater". org/codehaus/jackson/map/JsonMappingException and in eclipse log !ENTRY org.eclipse.core.jobs 4 2 2011-10-02 19:06:17.154 !MESSAGE An internal error occurred during: "Map/Reduce location status updater". !STACK 0 java.lang.NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException at org.apache.hadoop.eclipse.server.HadoopServer.getJobClient(HadoopServer.java:473) at org.apache.hadoop.eclipse.server.HadoopServer$LocationStatusUpdater.run(HadoopServer.java:102) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonMappingException at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 3 more
        Hide
        alex gemini added a comment -

        I think the current eclipse plugin build path is missing some jar.please try following steps:
        in your $hadoop_src_home/src/contrib/eclipse-plugin/build.xml . in the "jar" target ,copy hadoop-core-xxx.jar from your $hadoop_src_home directory. also copy jackson-core-asl-xxx.jar ,jackson-mapper-asl-xxx.jar,commons-httpclient-xxx.jar from your $hadoop_src_home/lib. I'm not quit sure which version apache-0.20.203 use, but it seems that 0.20.205 use jackson-core-asl-1.0.1 , and clouder cdh use jackson-core-asl-1.5.2, make sure you can find correct version jar in your $hadoop_src_home/lib. then using
        ant -Declipse.home=/path/to/eclipse Dversion=xxx jar .
        you will find your eclipse plugin in build/contrib/eclipse-plugin/ directory.
        Good luck with that.
        This issue is also similar to MAPREDUCE-3029
        Hope some hadoop guy fix this build path issue.

        Show
        alex gemini added a comment - I think the current eclipse plugin build path is missing some jar.please try following steps: in your $hadoop_src_home/src/contrib/eclipse-plugin/build.xml . in the "jar" target ,copy hadoop-core-xxx.jar from your $hadoop_src_home directory. also copy jackson-core-asl-xxx.jar ,jackson-mapper-asl-xxx.jar,commons-httpclient-xxx.jar from your $hadoop_src_home/lib. I'm not quit sure which version apache-0.20.203 use, but it seems that 0.20.205 use jackson-core-asl-1.0.1 , and clouder cdh use jackson-core-asl-1.5.2, make sure you can find correct version jar in your $hadoop_src_home/lib. then using ant -Declipse.home=/path/to/eclipse Dversion=xxx jar . you will find your eclipse plugin in build/contrib/eclipse-plugin/ directory. Good luck with that. This issue is also similar to MAPREDUCE-3029 Hope some hadoop guy fix this build path issue.
        Hide
        Suresh Srinivas added a comment -

        Changing the priority from Blocker to Major.

        Show
        Suresh Srinivas added a comment - Changing the priority from Blocker to Major.
        Hide
        Peter added a comment -

        I have the same issue. I'm working with the same hadoop version. Does anyone find a solution for this?

        Thanks

        Show
        Peter added a comment - I have the same issue. I'm working with the same hadoop version. Does anyone find a solution for this? Thanks
        Hide
        huangjinfu added a comment -

        The same issue.Has a solution?

        Show
        huangjinfu added a comment - The same issue.Has a solution?
        Hide
        Esteban Hernandez added a comment -

        I have the same issue. I´m working with Eclipse Indigo SP2 for Windows x64. and Hadoop 0.20.205

        Show
        Esteban Hernandez added a comment - I have the same issue. I´m working with Eclipse Indigo SP2 for Windows x64. and Hadoop 0.20.205

          People

          • Assignee:
            Unassigned
            Reporter:
            shanlin
          • Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development