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

Istvan Toth edited comment on PHOENIX-7139 at 1/3/24 2:11 PM:
--------------------------------------------------------------

For some reason hbase mapredcp doesn't include the Hadoop JARs on my test 
pseudodistributed cluster.
However, the phoenix-mapreduce JAR seems to work fine as a JDBC client when I 
add 'hbase mapredcp' and "hadoop classpath' to it.


was (Author: stoty):
For some reason hbase mapredcp doesn't include the Hadoop JARs on my test 
distributed cluster.
However, the phoenix-mapreduce JAR seems to work fine as a JDBC client when I 
add 'hbase mapredcp' and "hadoop classpath' to it.

> Create phoenix-mapreduce-byo-shaded-hbase artifact for use by connectors
> ------------------------------------------------------------------------
>
>                 Key: PHOENIX-7139
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7139
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> This is designed to work with the classpath returned by the "hbase mapredcp" 
> command, which has the unshaded Hadoop dependencies, and the shaded 
> _hbase-shaded-mapreduce_ Jar.
> This is the same shading currently used by the Phoenix connectors shaded 
> artifacts.
>  * All Hadoop and HBase artifacts are marked as provided
>  * Protobuf 2.5 is relocated under 
> {color:#000000}org.apache.hadoop.hbase.shaded{color}
>  * Direct non-hbase and non-hadoop dependencies are relocated under 
> {color:#000000}org.apache.phoenix.shaded
> {color}
> {color:#000000}In theory, this should also work as a JDBC client with either 
> hbase-shaded-client, or with hbase-shaded-client-byo-hadoop + hadoop 
> classpath. (Not tested yet){color}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to