hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9112) Custom TableInputFormat in initTableMapperJob throws ClassNoFoundException on TableMapper
Date Sat, 16 Nov 2013 19:57:25 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824604#comment-13824604
] 

Hudson commented on HBASE-9112:
-------------------------------

FAILURE: Integrated in hbase-0.96-hadoop2 #120 (See [https://builds.apache.org/job/hbase-0.96-hadoop2/120/])
HBASE-9165 [mapreduce] Modularize building dependency jars

 - Separate adding HBase and dependencies from adding other job
   dependencies, and expose it as a separate method that other
   projects can use (for PIG-3285).
 - Explicitly add hbase-server to the list of dependencies we ship
   with the job, for users who extend the classes we provide (see
   HBASE-9112).
 - Add integration test for addDependencyJars.
 - Code reuse for TestTableMapReduce.

Note this patch differs from the one applied to TRUNK/0.98 in that it omits
changes to TestTableMapReduceUtil which have not yet been backported from
HBASE-8534. This can be addressed when that patch is backported (HBASE-9484). (ndimiduk: rev
1542342)
* /hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestTableMapReduceUtil.java
* /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java
* /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/IdentityTableMapper.java
* /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java
* /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/mapred/TestTableMapReduce.java
* /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableMapReduce.java
* /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableMapReduceBase.java


> Custom TableInputFormat in initTableMapperJob throws ClassNoFoundException on TableMapper
> -----------------------------------------------------------------------------------------
>
>                 Key: HBASE-9112
>                 URL: https://issues.apache.org/jira/browse/HBASE-9112
>             Project: HBase
>          Issue Type: Bug
>          Components: hadoop2, mapreduce
>    Affects Versions: 0.94.6.1
>         Environment: CDH-4.3.0-1.cdh4.3.0.p0.22
>            Reporter: Debanjan Bhattacharyya
>            Assignee: Nick Dimiduk
>             Fix For: 0.98.0, 0.94.7, 0.96.1
>
>
> When using custom TableInputFormat in TableMapReduceUtil.initTableMapperJob in the following
way
> TableMapReduceUtil.initTableMapperJob("mytable", 
> 							MyScan, 
> 							MyMapper.class,
> 							MyKey.class, 
> 							MyValue.class, 
> 							myJob,true,  MyTableInputFormat.class);
> I get error: 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)
> 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> If I do not use the last two parameters, there is no error.
> What is going wrong here?
> Thanks
> Regards



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message