eclipse插件hadoop

时间:2013-03-26 14:17:44

标签: hadoop eclipse-plugin

我使用$ HADOOP_HOME / src / contrib / eclipse-plugin中的build.xml文件构建了eclipse插件。 相关问题在这里: building eclipse plugin 但是,当我尝试在Eclipse中使用插件时,我得到了异常:

java.io.IOException: Exception in opening zip file: /home/user/Programms/eclipse   
/configuration/org.eclipse.osgi/bundles/799/1/.cp/lib/hadoop-core.jar
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:291)
at  
org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:87)
at ....

Caused by: java.io.FileNotFoundException: /home/user/Programms/eclipse/configuration  
/org.eclipse.osgi/bundles/799/1/.cp/lib/hadoop-core.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.zip.ZipFile.<init>(ZipFile.java:158)
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:274)
... 61 more

hadoop-core.jar位于这样的目录中,可能是安全问题, 但我到处都使用相同的用户)。 有什么建议? 提前谢谢。


有点奇怪的行为现在我得到了这样的例外:

java.lang.NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException
at org.apache.hadoop.eclipse.server.HadoopServer.getJobClient(HadoopServer.java:479)
at 
 rg.apache.hadoop.eclipse.server.HadoopServer$LocationStatusUpdater.run(HadoopServer.ja 
 va:103)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
 Caused by: java.lang.ClassNotFoundException:org.codehaus.jackson.map.JsonMappingExcep
 tion
at  
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.j 
ava:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 3 more

看起来该插件没有看到org.codehaus.jackson库。 这是我的清单文件:

    Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MapReduce Tools for Eclipse
Bundle-SymbolicName: org.apache.hadoop.eclipse;singleton:=true
Bundle-Version: 0.18
Bundle-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
Bundle-Activator: org.apache.hadoop.eclipse.Activator
Bundle-Vendor: Apache Hadoop
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.jdt.launching,
 org.eclipse.debug.core,
 org.eclipse.jdt,
 org.eclipse.jdt.core,
 org.eclipse.core.resources,
 org.eclipse.ui.ide,
 org.eclipse.jdt.ui,
 org.eclipse.debug.ui,
 org.eclipse.jdt.debug.ui,
 org.eclipse.core.expressions,
 org.eclipse.ui.cheatsheets,
 org.eclipse.ui.console,
 org.eclipse.ui.navigator,
 org.eclipse.core.filesystem,
 org.apache.commons.logging
Eclipse-LazyStart: true
Import-Package: org.codehaus.jackson.map
Created-By: 1.7.0_17-b02 (Oracle Corporation)
Ant-Version: Apache Ant 1.8.2

所有图书馆都已到位。 有什么建议?

0 个答案:

没有答案