How to run Vertica example on Hadoop using Eclipse
Hi, I am trying to execute example from https://my.vertica.com/docs/5.1.6/HTML/index.htm#15539.htm.
I did all settings correctly. I am getting following error while executing program on Haddop using Eclipse IDE.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/InputFormat at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at hadoopConnection.VerticaExample.run(VerticaExample.java:163) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at hadoopConnection.VerticaExample.main(VerticaExample.java:203)
I did all settings correctly. I am getting following error while executing program on Haddop using Eclipse IDE.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/InputFormat at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at hadoopConnection.VerticaExample.run(VerticaExample.java:163) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at hadoopConnection.VerticaExample.main(VerticaExample.java:203)
0
Comments
https://my.vertica.com/docs/5.1.6/HTML/index.htm#15510.htm
You are using the old version of vertica.. need to make sure as per the version, you have followed the documenation and set the proper class path etc.
Make sure that below class is available in the jar
org/apache/hadoop/mapreduce/InputFormat