java - Error while running a basic wordcount program on Eclipse -
let me inform beginner in hadoop domain. so, referring https://developer.yahoo.com/hadoop/tutorial/module3.html tutorial. completed set , copied codes eclipse map-reduce project. no error showing far wordcountmapper,wordcountreducer , wordcount.java files concerned.
now, when click on run on hadoop , select set server on vm player , click next, nothing happens afterwards. same "run on hadoop selected server page" stays stucked. progress information panel comes shorter span, can't check says actually.
however, @ log files every time after completing these steps. please me out. struggling since last 2 days. far required libraries go, have added required .jar files hadoop installation path.
.log file contents ---
!entry org.eclipse.ui 4 0 2015-05-31 16:56:39.849 !message unhandled event loop exception !stack 0 java.lang.classcastexception: org.eclipse.swt.widgets.table cannot cast org.eclipse.swt.widgets.tablecolumn @ org.eclipse.swt.widgets.table.getcolumn(table.java:766) @ org.eclipse.swt.widgets.table.releasechildren(table.java:1532) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.composite.releasechildren(composite.java:840) @ org.eclipse.swt.widgets.canvas.releasechildren(canvas.java:120) @ org.eclipse.swt.widgets.decorations.releasechildren(decorations.java:501) @ org.eclipse.swt.widgets.shell.releasechildren(shell.java:932) @ org.eclipse.swt.widgets.widget.release(widget.java:816) @ org.eclipse.swt.widgets.widget.dispose(widget.java:445) @ org.eclipse.swt.widgets.decorations.dispose(decorations.java:282) @ org.eclipse.swt.widgets.shell.dispose(shell.java:566) @ org.eclipse.jface.window.window.close(window.java:330) @ org.eclipse.jface.dialogs.dialog.close(dialog.java:971) @ org.eclipse.jface.dialogs.traydialog.close(traydialog.java:143) @ org.eclipse.jface.wizard.wizarddialog.hardclose(wizarddialog.java:797) @ org.eclipse.jface.wizard.wizarddialog.close(wizarddialog.java:427) @ org.eclipse.jface.wizard.wizarddialog.cancelpressed(wizarddialog.java:414) @ org.eclipse.jface.wizard.wizarddialog$1.widgetselected(wizarddialog.java:293) @ org.eclipse.swt.widgets.typedlistener.handleevent(typedlistener.java:227) @ org.eclipse.swt.widgets.eventtable.sendevent(eventtable.java:66) @ org.eclipse.swt.widgets.widget.sendevent(widget.java:1006) @ org.eclipse.swt.widgets.display.rundeferredevents(display.java:2413) @ org.eclipse.swt.widgets.display.readanddispatch(display.java:2164) @ org.eclipse.jface.window.window.runeventloop(window.java:820) @ org.eclipse.jface.window.window.open(window.java:796) @ org.apache.hadoop.eclipse.launch.hadoopapplicationlaunchshortcut.findlaunchconfiguration(hadoopapplicationlaunchshortcut.java:110) @ org.eclipse.jdt.internal.debug.ui.launcher.javalaunchshortcut.launch(javalaunchshortcut.java:109) @ org.eclipse.jdt.internal.debug.ui.launcher.javalaunchshortcut.searchandlaunch(javalaunchshortcut.java:74) @ org.eclipse.jdt.internal.debug.ui.launcher.javalaunchshortcut.launch(javalaunchshortcut.java:227) @ org.eclipse.debug.internal.ui.launchconfigurations.launchshortcutextension.launch(launchshortcutextension.java:429) @ org.eclipse.debug.internal.ui.actions.launchshortcutaction.run(launchshortcutaction.java:66) @ org.eclipse.jface.action.action.runwithevent(action.java:498) @ org.eclipse.jface.action.actioncontributionitem.handlewidgetselection(actioncontributionitem.java:546) @ org.eclipse.jface.action.actioncontributionitem.access$2(actioncontributionitem.java:490) @ org.eclipse.jface.action.actioncontributionitem$5.handleevent(actioncontributionitem.java:402) @ org.eclipse.swt.widgets.eventtable.sendevent(eventtable.java:66) @ org.eclipse.swt.widgets.widget.sendevent(widget.java:1006) @ org.eclipse.swt.widgets.display.rundeferredevents(display.java:2413) @ org.eclipse.swt.widgets.display.readanddispatch(display.java:2164) @ org.eclipse.ui.internal.workbench.runeventloop(workbench.java:2389) @ org.eclipse.ui.internal.workbench.runui(workbench.java:2353) @ org.eclipse.ui.internal.workbench.access$4(workbench.java:2219) @ org.eclipse.ui.internal.workbench$4.run(workbench.java:466) @ org.eclipse.core.databinding.observable.realm.runwithdefault(realm.java:289) @ org.eclipse.ui.internal.workbench.createandrunworkbench(workbench.java:461) @ org.eclipse.ui.platformui.createandrunworkbench(platformui.java:149) @ org.eclipse.ui.internal.ide.application.ideapplication.start(ideapplication.java:106) @ org.eclipse.equinox.internal.app.eclipseapphandle.run(eclipseapphandle.java:169) @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.runapplication(eclipseapplauncher.java:106) @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.start(eclipseapplauncher.java:76) @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:363) @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:176) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.eclipse.equinox.launcher.main.invokeframework(main.java:508) @ org.eclipse.equinox.launcher.main.basicrun(main.java:447) @ org.eclipse.equinox.launcher.main.run(main.java:1173)
that error doesn't seem related hadoop. couldn't find reference swt table or column in page also.
you start normal java application see if it's working ok, , after run wordcount ($hadoop_home/share/hadoop/mapreduce/hadoop-mapreduce-examples) terminal, test hadoop instalation. after should come eclipse see if it's working (in hadoop there less problems running things terminal instead of doing directly eclipse)
Comments
Post a Comment