[
https://issues.apache.org/jira/browse/PHOENIX-5967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17153321#comment-17153321
]
Istvan Toth commented on PHOENIX-5967:
--------------------------------------
I've attached a PR, that should implement [~larsh] 's suggestion.
The idea is that instead of building separate -client and -server artifacts for
each HBase profile, we only build the artifacts for the selected profile.
The phoenix-server artifact's content should not depend on which profile it is
build with, as we remove the compatibility module form it, and PHOENIX-5893
should ensure that it doesn't include and hbase/hadoop components.
The phoenix-client artifact is built with the specified profile. I am not
completely sure if connecting with a newer minor version to an older server is
OK, but if we build the published assemblies/artifacts with the oldest
supported HBase profile, we should OK for all cases.
Of course Phoenix can (and should) still be built with the exact Hadoop/Hbase
version used on the Hbase cluster, to maximize performance and compatibility.
Testing done:
* Built HBase branch-2.2 with -Dhadoop.profile=3.0
* Built Phoenix with -Dhbase.profile=2.1
* copied the -server and the compat-2.2.1 jar to the Hbase lib dir
* started Hbase, run minimal smoke test (connect, insert, select) with Phoenix
In this case we used with Phoenix built with Hadoop 3.0.3 and Hbase 2.1.9 to
connect to an Hbase 2.2.6-SNAPSHOT built with Hadoop-3.1.2
> phoenix-client transitively pulling in phoenix-core
> ---------------------------------------------------
>
> Key: PHOENIX-5967
> URL: https://issues.apache.org/jira/browse/PHOENIX-5967
> Project: Phoenix
> Issue Type: Bug
> Reporter: Josh Elser
> Assignee: Istvan Toth
> Priority: Critical
>
> Looks like something happened in master where phoenix-client is now
> transitively pulling in phoenix-core, even though all of phoenix-core and its
> dependencies are included in the phoenix-client shaded artifact.
> 4.15.0 looks OK, so maybe something inadvertent with the hbase version
> classifier stuff, [~stoty]?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)