From f9e5231be3b55833633d6672b8bc4d2e1e01888b Mon Sep 17 00:00:00 2001 From: Xiang Fu Date: Tue, 21 Jan 2025 13:46:32 -0800 Subject: [PATCH] split pinot-protobuf plugin to pinot-protobuf and pinot-confluent-protobuf --- pinot-distribution/pinot-assembly.xml | 6 ++ .../pinot-confluent-protobuf/pom.xml | 95 +++++++++++++++++++ ...tSchemaRegistryProtoBufMessageDecoder.java | 0 .../protobuf/ProtoBufConfluentSchemaTest.java | 0 .../schemaregistry/SchemaRegistryStarter.java | 0 .../pinot-input-format/pinot-protobuf/pom.xml | 8 -- pinot-plugins/pinot-input-format/pom.xml | 1 + pom.xml | 5 + 8 files changed, 107 insertions(+), 8 deletions(-) create mode 100644 pinot-plugins/pinot-input-format/pinot-confluent-protobuf/pom.xml rename pinot-plugins/pinot-input-format/{pinot-protobuf => pinot-confluent-protobuf}/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/KafkaConfluentSchemaRegistryProtoBufMessageDecoder.java (100%) rename pinot-plugins/pinot-input-format/{pinot-protobuf => pinot-confluent-protobuf}/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufConfluentSchemaTest.java (100%) rename pinot-plugins/pinot-input-format/{pinot-protobuf => pinot-confluent-protobuf}/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/kafka/schemaregistry/SchemaRegistryStarter.java (100%) diff --git a/pinot-distribution/pinot-assembly.xml b/pinot-distribution/pinot-assembly.xml index 654417f3b3b2..04a88924c46a 100644 --- a/pinot-distribution/pinot-assembly.xml +++ b/pinot-distribution/pinot-assembly.xml @@ -183,6 +183,12 @@ plugins/pinot-input-format/pinot-protobuf/pinot-protobuf-${project.version}-shaded.jar + + + ${pinot.root}/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/target/pinot-confluent-protobuf-${project.version}-shaded.jar + + plugins/pinot-input-format/pinot-confluent-protobuf/pinot-confluent-protobuf-${project.version}-shaded.jar + diff --git a/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/pom.xml b/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/pom.xml new file mode 100644 index 000000000000..aa584ef2c2fc --- /dev/null +++ b/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/pom.xml @@ -0,0 +1,95 @@ + + + + 4.0.0 + + pinot-input-format + org.apache.pinot + 1.4.0-SNAPSHOT + + + pinot-confluent-protobuf + Pinot Protocol Buffers + https://pinot.apache.org/ + + ${basedir}/../../.. + package + + + + confluent + https://packages.confluent.io/maven/ + + + + + org.apache.pinot + pinot-protobuf + + + io.confluent + kafka-protobuf-serializer + + + io.confluent + kafka-schema-registry-client + + + + org.testcontainers + testcontainers + test + + + org.testcontainers + kafka + test + + + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + + ${basedir}/src/test/resources + + + + + test-compile + + + + + + + + + + pinot-fastdev + + none + + + + diff --git a/pinot-plugins/pinot-input-format/pinot-protobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/KafkaConfluentSchemaRegistryProtoBufMessageDecoder.java b/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/KafkaConfluentSchemaRegistryProtoBufMessageDecoder.java similarity index 100% rename from pinot-plugins/pinot-input-format/pinot-protobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/KafkaConfluentSchemaRegistryProtoBufMessageDecoder.java rename to pinot-plugins/pinot-input-format/pinot-confluent-protobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/KafkaConfluentSchemaRegistryProtoBufMessageDecoder.java diff --git a/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufConfluentSchemaTest.java b/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufConfluentSchemaTest.java similarity index 100% rename from pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufConfluentSchemaTest.java rename to pinot-plugins/pinot-input-format/pinot-confluent-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufConfluentSchemaTest.java diff --git a/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/kafka/schemaregistry/SchemaRegistryStarter.java b/pinot-plugins/pinot-input-format/pinot-confluent-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/kafka/schemaregistry/SchemaRegistryStarter.java similarity index 100% rename from pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/kafka/schemaregistry/SchemaRegistryStarter.java rename to pinot-plugins/pinot-input-format/pinot-confluent-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/kafka/schemaregistry/SchemaRegistryStarter.java diff --git a/pinot-plugins/pinot-input-format/pinot-protobuf/pom.xml b/pinot-plugins/pinot-input-format/pinot-protobuf/pom.xml index 31dce549a01f..6123247496d1 100644 --- a/pinot-plugins/pinot-input-format/pinot-protobuf/pom.xml +++ b/pinot-plugins/pinot-input-format/pinot-protobuf/pom.xml @@ -59,14 +59,6 @@ org.apache.kafka kafka-clients - - io.confluent - kafka-schema-registry-client - - - io.confluent - kafka-protobuf-serializer - org.testcontainers diff --git a/pinot-plugins/pinot-input-format/pom.xml b/pinot-plugins/pinot-input-format/pom.xml index 3316c9fbec52..6f39b655199f 100644 --- a/pinot-plugins/pinot-input-format/pom.xml +++ b/pinot-plugins/pinot-input-format/pom.xml @@ -41,6 +41,7 @@ pinot-avro-base pinot-clp-log pinot-confluent-avro + pinot-confluent-protobuf pinot-orc pinot-json pinot-parquet diff --git a/pom.xml b/pom.xml index 989ceb86b769..6abeb7753bdb 100644 --- a/pom.xml +++ b/pom.xml @@ -581,6 +581,11 @@ pinot-confluent-avro ${project.version} + + org.apache.pinot + pinot-confluent-protobuf + ${project.version} + org.apache.pinot pinot-orc