Created on 10-25-2013 06:26 AM - edited 09-16-2022 01:49 AM
(cross posting this from the scm-user ML, which I find easier to use... sorry if this is bad form)
Hello folks,
{{CDH_HADOOP_HOME}}/*:{{CDH_HADOOP_HOME}}/lib/*
java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/lib/partition/InputSampler$Sampler at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) at java.lang.Class.getMethod0(Class.java:2764) at java.lang.Class.getMethod(Class.java:1653) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.<init>(ProgramDriver.java:60) at org.apache.hadoop.util.ProgramDriver.addClass(ProgramDriver.java:103) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:51) 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:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:208) Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapreduce.lib.partition.InputSampler$Sampler 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:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 12 more
Created 10-25-2013 09:19 AM
Posting Darren Lo's response for the ML:
Hi Joe,
Created 10-25-2013 09:19 AM
Posting Darren Lo's response for the ML:
Hi Joe,
Created 01-04-2016 03:39 AM
I fix this by adding following line:
export CDH_MR2_HOME=$HADOOP_HOME
in .bash_profile