phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (PHOENIX-5492) Error:phoenix5.0 java jdbc wiht Hbase2.2.0 and Protobuf3
Date Wed, 25 Sep 2019 14:41:00 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-5492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josh Elser resolved PHOENIX-5492.
---------------------------------
    Resolution: Invalid

Phoenix depends on a specific version of protobuf on its classpath. Phoenix does not presently
have this dependency shaded. You must do so in your application.

> Error:phoenix5.0 java jdbc wiht Hbase2.2.0 and Protobuf3
> --------------------------------------------------------
>
>                 Key: PHOENIX-5492
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5492
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0
>         Environment: pom:
> hbase-client:2.2.0
> phoenix-core:5.0.0-HBase-2.0
> protobuf-java:3.5.1
>            Reporter: lynch gao
>            Priority: Major
>
> pom:
> hbase-client:2.2.0
> phoenix-core:5.0.0-HBase-2.0
> protobuf-java:3.5.1
>  
> My project is already dependenced with Protobuf3.x.
> When run the phoenix jdbc code:
>  
> try {
> con = DriverManager.getConnection("jdbc:phoenix:xxxx:2181");
> stmt = con.createStatement();
> ...
> i got error is:
>  
> java.sql.SQLException: java.lang.NoClassDefFoundError: com/google/protobuf/LiteralByteString
> at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1390)
> at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1351)
> at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:1538)
> at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:2721)
>  
> So ,i try to debug code,the problem is from hbase-protocol-2.2.0.jar
> public final class HBaseZeroCopyByteString extends LiteralByteString {
>  
> but the LiteralByteString is not exised in protobuf3.x 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message