Note that there are some explanatory texts on larger screens.

plurals
  1. POClassNotFoundException on TableMapper when I use my own TableInputFormat
    primarykey
    data
    text
    <p>I am trying to use my own TableInputFormat for a MapReduceJob in the following way</p> <p><code> TableMapReduceUtil.initTableMapperJob("mytable", MyScan, MyMapper.class, MyKey.class, MyValue.class, myJob,true, MyTableInputFormat.class);</code></p> <p>When I run the job, I get a ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableMapper - any idea why ? </p> <p>if I do not use the last two parameters of initTableMapperJob, then there is no ClassNotFoundException (but obviously that defeats the purpose)</p> <p>I am struggling on this for few days now. This is somewhere someone did the same thing <a href="https://stackoverflow.com/questions/11353911/extending-hadoops-tableinputformat-to-scan-with-a-prefix-used-for-distribution/17952223">Extending Hadoop&#39;s TableInputFormat to scan with a prefix used for distribution of timestamp keys</a>, but I am not being able to ask the question on that thread.</p> <p>I am working on a Cloudera Cluster 4.3.0 with Hadoop 2</p> <p>Adding the stacktrace error: </p> <pre><code>java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableMapper at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.ClassLoader.defineClass1(Native Method) .... </code></pre> <p>Thanks a lot for helping</p> <p>Regards</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload