phoenix-dev mailing list archives

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

             Summary: 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


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