[
https://issues.apache.org/jira/browse/PIG-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085983#comment-13085983
]
Dmitriy V. Ryaboy commented on PIG-2220:
----------------------------------------
Hi Roman,
"Register" accomplishes two things -- gets pig to put the jars on its
classpath, and tells it to ship the registered jars. From the HBaseStorage
code, we can take care of the second part of this -- automatically tell pig to
always ship the jars if the HBaseStorage is used. Naturally, the local java
process still needs to be able to find the jars in the first place.
I believe what's happening here is that you need to have the guava/hbase/zk
jars on your *classpath* when you start pig. If it can find the jars,
everything will work. If it can't, it'll throw the ClassNotFoundException.
> Pig/HBase integration could be improved
> ---------------------------------------
>
> Key: PIG-2220
> URL: https://issues.apache.org/jira/browse/PIG-2220
> Project: Pig
> Issue Type: Improvement
> Components: grunt
> Affects Versions: 0.9.0, 0.10
> Reporter: Roman Shaposhnik
> Priority: Minor
>
> For now any Pig/HBase queries would require the following jars to be
> explicitly added via Pig's register command:
> register /usr/lib/hbase/lib/zookeeper-3.3.3-cdh3u1.jar;
> register /usr/lib/hbase/hbase-0.90.3-cdh3u1.jar;
> register /usr/lib/hbase/lib/guava-r06.jar;
> the longer term solution, perhaps, should be to have the code at submit time
> call hbase's
> TableMapREduceUtil.addDependencyJar(job, HBaseStorageHandler.class) to ship
> it in distributedcache.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira