0

我從cloudera下載並安裝hadoop-cdh3u2。在hadoop-0.20.2-cdh3u2/src/contrib裏面我找到了一個名爲「eclipse-plugin」的項目,我在eclipse中導入它,出現錯誤,並添加了hadoop-core.jar作爲eclipse應用程序,但我不能添加一個新的服務器(我需要更新「MANIFEST.MF」中的任何內容)??我收到以下錯誤。我想知道出口這個項目成罐是正常的過程,或者我需要做任何額外的?hadoop插件的日食

Eclipse版本是靛藍,平臺的Ubuntu 11.10,Java版本是1.6

java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration 
    at org.apache.hadoop.eclipse.server.HadoopServer.<init>(HadoopServer.java:223) 
    at org.apache.hadoop.eclipse.servers.HadoopLocationWizard.<init>(HadoopLocationWizard.java:88) 
    at org.apache.hadoop.eclipse.actions.NewLocationAction$1.<init>(NewLocationAction.java:41) 
    at org.apache.hadoop.eclipse.actions.NewLocationAction.run(NewLocationAction.java:40) 
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) 
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) 
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) 
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) 
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) 
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) 
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) 
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) 
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:616) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386) 
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration 
    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:266) 
    ... 33 more 

回答

1

surendhar,Eclipse插件不會用Hadoop 0.20.203工作*點擊這裏:https://issues.apache.org/jira/browse/HADOOP-7382

+0

任何替代辦法? ? – Nageswaran 2011-12-22 14:28:28

+0

surendhar,thier是Hadoop wiki中的一部分,它可以幫助你在這裏獲得更新搜索http://wiki.apache.org/hadoop/EclipsePlugIn另外,請查看此鏈接中的註釋部分:https://issues.apache。組織/ JIRA /瀏覽/ HADOOP-7382頁= com.atlassian.jira.plugin.system.issuetabpanels:發表評論,一個tabpanel#問題的選項卡 – 2011-12-22 17:00:09