Hello, I'm trying to execute hive on windows with cygwin, I have Haddop
configured and running
when I try to run hive I get this exception
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apachreduce/JobContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLo6)
at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoa)
at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(Sha:100)
at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(Hi368)
at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogU)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:6
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAjava:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatinsorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapreext
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method
at java.net.URLClassLoader.findClass(URLClassLoader.java:354
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 15 more
Writing this email I realize that hive scrips is not adding in the
classpath the hadoop jars this is necesario, where do I have to add this
jars?
Thanks
--
Ing. Ivaldi Andres