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

Nick Dimiduk commented on HIVE-6356:
------------------------------------

I stumbled into this recently as well. HTrace is now a required runtime 
dependency, even when it's not used. This patch is incorrect, however. Because 
Hive is using the mapred namespace classes, the correct API is to invoke 
o.a.h.hbase.mapred.TableMapReduceUtil#addDependencyJars(JobConf). This will 
wire in all of HBase's runtime dependencies for you, and also attempt to 
auto-detect additional dependencies based on the JobConf (output classes, 
partitioners, formats, etc). If you want more fine-grained control over these 
dependencies (as Pig did, see PIG-3285), there are additional static methods in 
the o.a.h.hbase.mapreduce.TableMapReduceUtil class.

For Hive's purpose, I think you'll be fine with just calling 
mapred.TableMapReduceUtil#addDependencyJars(JobConf). Having a smoke test that 
runs in pseudo-distributed mode would be helpful in verifying all requirements 
are met.

> Dependency injection in hbase storage handler is broken
> -------------------------------------------------------
>
>                 Key: HIVE-6356
>                 URL: https://issues.apache.org/jira/browse/HIVE-6356
>             Project: Hive
>          Issue Type: Bug
>          Components: HBase Handler
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-6356.1.patch.txt
>
>
> Dependent jars for hbase is not added to tmpjars, which is caused by the 
> change of method signature(TableMapReduceUtil.addDependencyJars).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to