Skip to main content

How to run Vertica example on Hadoop using Eclipse

  • August 9, 2014
  • 1 reply
  • 7 views

Yogesh_Sonawane
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)

1 reply

Prasanta_Pal
Forum|alt.badge.img
  • Participating Frequently
  • August 12, 2014
Please confirm that you have followed:
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