Spark Phoenix Error org.apache.phoenix.exception.PhoenixIOException: Can't find method newStub in org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService!
Exception -
Caused by: org.apache.phoenix.exception.PhoenixIOException: Can't find method newStub in org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService!
at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:138)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.checkClientServerCompatibility(ConnectionQueryServicesImpl.java:1652)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(ConnectionQueryServicesImpl.java:1462)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:1913)
at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:3074)
Solution -
- This error is due to HBase & Phoenix Jar mismatch. Execute Spark-Submit with --verbose option for debugging.
- Remove all HBase Jars from classpath. And, just add phoenix shaded Jar to classpath.
Comments
Post a Comment