Installing Hadoop's Eclipse Plugin

后端 未结 2 1537
抹茶落季
抹茶落季 2021-02-09 17:01

I have such a nightmare with the Hadoop\'s Eclipse plugin. First of all the latest Hadoop version (which is 1.1.1) doesn\'t even include the Eclipse plugin jar file. version 1.0

2条回答
  •  盖世英雄少女心
    2021-02-09 17:45

    I installed eclipse plugin for hadoop-1.0.4 yesterday with difficulty, and tested it successful.

    The reason for plugin not working is that the jar package lost some libs :

    • commons-cli-1.2.jar
    • commons-configuration-1.6.jar
    • jackson-core-asl-1.8.8.jar
    • jackson-mapper-asl-1.8.8.jar
    • commons-httpclient-3.0.1.jar
    • commons-lang-2.4.jar

    you could cp this jars from ${hadoop}/lib to ${jar}/lib, and don't forget modifying MANIFEST.

    For convenience, I add some code to ${eclipse-plugin-src}/build.xml target jar

    
    
    
    
    
    
    

    and modified MANIFEST.MF in ${eclipse-plugin-src}/META-INF

    undle-ClassPath: classes/,
     lib/hadoop-core.jar,
     lib/commons-cli-1.2.jar,
     lib/commons-configuration-1.6.jar,
     lib/jackson-core-asl-1.8.8.jar,
     lib/commons-httpclient-3.0.1.jar,
     lib/jackson-mapper-asl-1.8.8.jar,
     lib/commons-lang-2.4.jar
    

    rebuild eclipse-plugin, and HAVE FUN!

提交回复
热议问题