[ https://issues.apache.org/jira/browse/FLINK-15463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17008663#comment-17008663 ]
chenchencc commented on FLINK-15463: ------------------------------------ I resolve it just now by recompile flink 1.9.1 module flink-table-planner. The reason is flink didn't put the google protobuf package to the calcite package.These are the steps to resolve this problem: edit the pom.xml of flink-table-planner moduel # remove the exclusion of com.google.protobuf:protobuf-java in dependence: <exclusion> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> </exclusion> # add <include>com.google.protobuf:protobuf-java</include> in artifactSet—includes # mvn clean pacakge -DskipTests just do above two steps can resolve it,the package is to the relocation of calcite! I hope this can help you! > export table sql jar ,meet error: java.lang.ClassNotFoundException: > org.apache.flink.calcite.shaded.com.google.protobuf.MessageOrBuilder > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: FLINK-15463 > URL: https://issues.apache.org/jira/browse/FLINK-15463 > Project: Flink > Issue Type: Bug > Components: Table SQL / API > Affects Versions: 1.7.2, 1.9.1 > Environment: Windows 10 > Idea IDE > Reporter: xiexinyuan > Priority: Major > Attachments: phoenix-test.zip > > > I can use JDBCInputFormat connect phoenix correct.but when i export > flink-table api , the program will crash. the error is : > java.lang.ClassNotFoundException: > org.apache.flink.calcite.shaded.com.google.protobuf.MessageOrBuilder > the program code is zipped in the attachement. -- This message was sent by Atlassian Jira (v8.3.4#803005)