Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65368E9E8 for ; Tue, 26 Feb 2013 20:26:13 +0000 (UTC) Received: (qmail 85997 invoked by uid 500); 26 Feb 2013 20:26:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 85783 invoked by uid 500); 26 Feb 2013 20:26:13 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 85773 invoked by uid 99); 26 Feb 2013 20:26:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 20:26:13 +0000 Date: Tue, 26 Feb 2013 20:26:13 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7934) TableMapReduceUtil doesn't include all dependency jars in new modular build MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-7934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587496#comment-13587496 ] Nick Dimiduk commented on HBASE-7934: ------------------------------------- I can exclude prefix-tree for now and open a ticket for adding it back, pending completion of \[insert your ticket here\]. Your call, chief. I'm terrified to even bring it up, but [Aether|http://www.eclipse.org/aether/] claims to provide dependency graph resolution. I've not used it directly; I'm only aware of it via the clojure library [pomegranate|https://github.com/cemerick/pomegranate]. I have no idea if it can inspect bytecode or if it's purely a client to maven. > TableMapReduceUtil doesn't include all dependency jars in new modular build > --------------------------------------------------------------------------- > > Key: HBASE-7934 > URL: https://issues.apache.org/jira/browse/HBASE-7934 > Project: HBase > Issue Type: Bug > Components: mapreduce > Affects Versions: 0.95.0, 0.96.0 > Reporter: Nick Dimiduk > Assignee: Nick Dimiduk > Attachments: 0001-HBASE-7934-TableMapReduceUtil-include-module-depende.patch, 0001-HBASE-7934-TableMapReduceUtil-include-module-depende.patch > > > From post to hbase-dev: > I'm seeing ClassNotFoundExceptions when running ImportTsv against trunk. Presumably the old instructions for classpath assembly need an update. I guess I could create a hadoop jar that ships the classpath entries in lib, but IMHO that's not a viable solution for users who want to run one of the jobs we distribute. Am I missing something? > For you reference: > {code} > $ HADOOP_CLASSPATH=$(./bin/hbase classpath) hadoop jar ./hbase-server/target/hbase-server-0.95-SNAPSHOT.jar importtsv -Dimporttsv.columns=HBASE_ROW_KEY,d:c1,d:c2 -Dimporttsv.bulk.output=hdfs:///tmp/hfiles simple hdfs:///tmp/simple.tsv > ... > Error: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.protobuf.generated.ClientProtos$Mutate$MutateType > 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 org.apache.hadoop.hbase.mapreduce.MutationSerialization$MutationSerializer.serialize(MutationSerialization.java:87) > at org.apache.hadoop.hbase.mapreduce.MutationSerialization$MutationSerializer.serialize(MutationSerialization.java:70) > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1069) > at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:691) > at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80) > at org.apache.hadoop.hbase.mapreduce.TsvImporterMapper.map(TsvImporterMapper.java:151) > at org.apache.hadoop.hbase.mapreduce.TsvImporterMapper.map(TsvImporterMapper.java:37) > at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370) > at org.apache.hadoop.mapred.Child$4.run(Child.java:255) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121) > at org.apache.hadoop.mapred.Child.main(Child.java:249) > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira