[
https://issues.apache.org/jira/browse/PHOENIX-6567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17424833#comment-17424833
]
Istvan Toth commented on PHOENIX-6567:
--------------------------------------
This is not a bug, you have a classpath issue.
Make sure that you use phoenix-client-hbase-2.x.jar on the client side and that
you do not have other hbase libraries to the classpath.
Also make sure that you put only the phoenix-server-*.jar on the HBase server
classpath.
> Protobuf-java version too old for the latest hbase
> --------------------------------------------------
>
> Key: PHOENIX-6567
> URL: https://issues.apache.org/jira/browse/PHOENIX-6567
> Project: Phoenix
> Issue Type: Bug
> Components: core
> Affects Versions: 5.1.2
> Reporter: Isaac Yuen
> Priority: Major
>
> Currently for hbase-2.x.x onwards, the protobuf-java version used by hbase
> has already been 3.5.x or 3.11.x. But version used by phoenix is still
> staying at protobuf-java 2.5.x. As a result, the following is disabling the
> hbase to integrate with phoenix.
>
> coprocessor.CoprocessorHost: The coprocessor
> org.apache.phoenix.coprocessor.MetaDataEndpointImpl threw
> java.lang.ClassCastException:
> org.apache.phoenix.coprocessor.MetaDataEndpointImpl cannot be cast to
> com.google.protobuf.Service
>
> References:
> [https://github.com/apache/hbase/blob/3cc539a561c4d35dc661c155768ffbfe2d2f073f/hbase-protocol-shaded/pom.xml#L37]
> [https://github.com/apache/phoenix/blob/1a13c055afb01a2ba6e658f0dd41a753bf904555/pom.xml#L107]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)