Closed mhaseebmlk closed 2 years ago
cc @jianyun8023 @yjshen @syhily for visibility.
@mhaseebmlk Noted. @nlu90 @syhily Can someone take a look at this issue?
@mhaseebmlk The Pulsar-Flink Connector has support for protobuf_native
format, so it has dependency on protobuf native. You will need to put it under the /lib
directory or add when starting the sql-client. You also need to put some pulsar or avro related jars under lib
.
And this is the command I used to start sql-client:
./bin/sql-client.sh embedded --jar /Users/nlu/workspace/stream-native/pulsar-flink/pulsar-flink-connector/target/pulsar-flink-connector-origin-1.13.1.0.jar --jar /Users/nlu/.m2/repository/com/google/protobuf/protobuf-java/3.11.1/protobuf-java-3.11.1.jar
And here's an example lib
dir with all dependencies:
➜ flink-1.13.2 ls lib
avro-1.10.0.jar flink-dist_2.11-1.13.2.jar flink-shaded-zookeeper-3.4.14.jar flink-table_2.11-1.13.2.jar jackson-databind-2.11.4.jar log4j-api-2.12.1.jar pulsar-client-admin-api-2.8.0.jar
flink-avro-1.13.2.jar flink-json-1.13.2.jar flink-sql-avro-1.13.2.jar jackson-annotations-2.11.4.jar jul-to-slf4j-1.7.12.jar log4j-core-2.12.1.jar pulsar-client-all-2.8.0.jar
flink-csv-1.13.2.jar flink-protobuf-2.7.6.jar flink-table-blink_2.11-1.13.2.jar jackson-core-2.11.4.jar log4j-1.2-api-2.12.1.jar log4j-slf4j-impl-2.12.1.jar pulsar-client-api-2.8.0.jar
@mhaseebmlk does Neng's comment answer your question?
Yes, it does. Thank you. I'll go ahead and close this issue.
Describe the bug Every time I run the basic query
SELECT * FROM <_topic-name_>;
I get the following exceptionjava.lang.NoClassDefFoundError: com/google/protobuf/Descriptors$FieldDescriptor$JavaType
. See below for complete trace:To Reproduce My setup uses the following applications and versions:
v2.8.1
v.1.13.6
v1.13.1.0
(pulsar-flink-sql-connector_2.11-1.13.1.0.jar
)Steps to reproduce the behavior:
v2.8.1
from https://archive.apache.org/dist/pulsar/pulsar-2.8.1/apache-pulsar-2.8.1-bin.tar.gztar -xzf apache-pulsar-2.8.1-bin.tar.gz
cd
into the directory and run Pulsar instandalone
mode:./bin/pulsar standalone
my-topic
. For this I am using Pulsar's Python client as shown in https://pulsar.apache.org/docs/en/client-libraries-python/#producer-example.v.1.13.6
binary for Scala 2.11 from https://www.apache.org/dyn/closer.lua/flink/flink-1.13.6/flink-1.13.6-bin-scala_2.11.tgztar -xzf flink-1.13.6-bin-scala_2.11.tgz
./bin/start-cluster.sh
./bin/sql-client.sh embedded --jar pulsar-flink-sql-connector_2.11-1.13.1.0.jar
. This is using the following configuration for thesql-client-defaults.yaml
file:catalogs:
execution: planner: blink type: streaming time-characteristic: event-time periodic-watermarks-interval: 200 result-mode: table max-table-result-rows: 1000000 parallelism: 1 max-parallelism: 128 min-idle-state-retention: 0 max-idle-state-retention: 0 current-catalog: default_catalog current-database: default_database restart-strategy: type: fallback
deployment: response-timeout: 5000 gateway-address: "" gateway-port: 0