From fea9bc97786c02c7fc866f499b10766316a4c5cf Mon Sep 17 00:00:00 2001 From: streamnativebot Date: Fri, 22 Sep 2023 14:44:18 +0000 Subject: [PATCH] "Created by snbot" --- docs/amqp-1-0-sink.md | 36 ++++++++++++------------- docs/amqp-1-0-source.md | 36 ++++++++++++------------- io-amqp1_0-impl/pom.xml | 2 +- pom.xml | 60 +++++++++++++++++++---------------------- tests/Dockerfile | 2 +- tests/pom.xml | 2 +- 6 files changed, 66 insertions(+), 72 deletions(-) diff --git a/docs/amqp-1-0-sink.md b/docs/amqp-1-0-sink.md index 9bfd8f51..b398b711 100644 --- a/docs/amqp-1-0-sink.md +++ b/docs/amqp-1-0-sink.md @@ -15,7 +15,7 @@ You can get the AMQP1_0 sink connector using one of the following methods. ## Use it with Function Worker -- Download the NAR package from [here](https://github.com/streamnative/pulsar-io-amqp-1-0/releases/download/v{{connector:version}}/pulsar-io-amqp1_0-{{connector:version}}.nar). +- Download the NAR package from [here](https://github.com/streamnative/pulsar-io-amqp-1-0/releases/download/v3.1.0.4/pulsar-io-amqp1_0-3.1.0.4.nar). - Build it from the source code. @@ -35,7 +35,7 @@ You can get the AMQP1_0 sink connector using one of the following methods. ```bash ls pulsar-io-amqp1_0/target - pulsar-io-amqp1_0-{{connector:version}}.nar + pulsar-io-amqp1_0-3.1.0.4.nar ``` ## Use it with Function Mesh @@ -102,7 +102,7 @@ You can create a configuration file (JSON or YAML) to set the properties as belo "namespace": "default", "name": "amqp1_0-sink", "inputs": ["user-op-queue-topic"], - "archive": "connectors/pulsar-io-amqp1_0-{{connector:version}}.nar", + "archive": "connectors/pulsar-io-amqp1_0-3.1.0.4.nar", "parallelism": 1, "configs": { @@ -124,7 +124,7 @@ Or: "namespace": "default", "name": "amqp1_0-sink", "inputs": ["user-op-queue-topic"], - "archive": "connectors/pulsar-io-amqp1_0-{{connector:version}}.nar", + "archive": "connectors/pulsar-io-amqp1_0-3.1.0.4.nar", "parallelism": 1, "configs": { "connection": { @@ -157,7 +157,7 @@ Or: name: "amqp1_0-sink" inputs: - "user-op-queue-topic" - archive: "connectors/pulsar-io-amqp1_0-{{connector:version}}.nar" + archive: "connectors/pulsar-io-amqp1_0-3.1.0.4.nar" parallelism: 1 configs: @@ -177,7 +177,7 @@ Or: name: amqp1_0-sink inputs: - user-op-queue-topic - archive: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + archive: connectors/pulsar-io-amqp1_0-3.1.0.4.nar parallelism: 1 configs: connection: @@ -208,7 +208,7 @@ kind: Sink metadata: name: amqp-sink-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSink replicas: 1 input: @@ -234,7 +234,7 @@ spec: cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar autoAck: true ``` @@ -247,7 +247,7 @@ kind: Sink metadata: name: amqp-sink-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSink replicas: 1 input: @@ -279,7 +279,7 @@ spec: cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar autoAck: true ``` @@ -301,7 +301,7 @@ This example shows how to create an AMQP1_0 sink connector on a Pulsar cluster u ``` PULSAR_HOME/bin/pulsar-admin sinks create \ --name amqp1_0-sink \ ---archive pulsar-io-amqp1_0-{{connector:version}}.nar \ +--archive pulsar-io-amqp1_0-3.1.0.4.nar \ --classname org.apache.pulsar.ecosystem.io.amqp.AmqpSink \ --sink-config-file amqp-sink-config.yaml ``` @@ -323,7 +323,7 @@ This example describes how to use the AMQP1_0 sink connector to pull data from P 2. Copy the NAR package of the AMQP1_0 sink connector to the Pulsar connectors directory. ``` - cp pulsar-io-amqp1_0-{{connector:version}}.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + cp pulsar-io-amqp1_0-3.1.0.4.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-3.1.0.4.nar ``` 3. Start Pulsar in standalone mode. @@ -340,7 +340,7 @@ This example describes how to use the AMQP1_0 sink connector to pull data from P ``` Searching for connectors in /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./connectors - Found connector ConnectorDefinition(name=amqp1_0, description=AMQP1_0 source and AMQP1_0 connector, sourceClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSource, sinkClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSink, sourceConfigClass=null, sinkConfigClass=null) from /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + Found connector ConnectorDefinition(name=amqp1_0, description=AMQP1_0 source and AMQP1_0 connector, sourceClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSource, sinkClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSink, sourceConfigClass=null, sinkConfigClass=null) from /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./connectors/pulsar-io-amqp1_0-3.1.0.4.nar Searching for functions in /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./functions ``` @@ -496,7 +496,7 @@ This example explains how to create an AMQP1_0 sink connector on an on-premises 1. Copy the NAR package of the AMQP1_0 connector to the Pulsar connectors directory. ``` - cp pulsar-io-amqp1_0-{{connector:version}}.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + cp pulsar-io-amqp1_0-3.1.0.4.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-3.1.0.4.nar ``` 2. Reload all [built-in connectors](https://pulsar.apache.org/docs/en/next/io-connectors/). @@ -546,7 +546,7 @@ This example demonstrates how to create an AMQP1_0 sink connector through Functi metadata: name: amqp-sink-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSink replicas: 1 input: @@ -572,7 +572,7 @@ This example demonstrates how to create an AMQP1_0 sink connector through Functi cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar autoAck: true ``` @@ -583,7 +583,7 @@ This example demonstrates how to create an AMQP1_0 sink connector through Functi metadata: name: amqp-sink-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSink replicas: 1 input: @@ -615,7 +615,7 @@ This example demonstrates how to create an AMQP1_0 sink connector through Functi cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar autoAck: true diff --git a/docs/amqp-1-0-source.md b/docs/amqp-1-0-source.md index 8f3f6a6e..4292e0a1 100644 --- a/docs/amqp-1-0-source.md +++ b/docs/amqp-1-0-source.md @@ -15,7 +15,7 @@ You can get the AMQP1_0 source connector using one of the following methods. ## Use it with Function Worker -- Download the NAR package from [here](https://github.com/streamnative/pulsar-io-amqp-1-0/releases/download/v{{connector:version}}/pulsar-io-amqp1_0-{{connector:version}}.nar). +- Download the NAR package from [here](https://github.com/streamnative/pulsar-io-amqp-1-0/releases/download/v3.1.0.4/pulsar-io-amqp1_0-3.1.0.4.nar). - Build it from the source code. @@ -36,7 +36,7 @@ You can get the AMQP1_0 source connector using one of the following methods. ```bash ls pulsar-io-amqp1_0/target - pulsar-io-amqp1_0-{{connector:version}}.nar + pulsar-io-amqp1_0-3.1.0.4.nar ``` ## Use it with Function Mesh @@ -102,7 +102,7 @@ You can create a configuration file (JSON or YAML) to set the properties as belo "namespace": "default", "name": "amqp1_0-source", "topicName": "user-op-queue-topic", - "archive": "connectors/pulsar-io-amqp1_0-{{connector:version}}.nar", + "archive": "connectors/pulsar-io-amqp1_0-3.1.0.4.nar", "parallelism": 1, "configs": { "protocol": "amqp", @@ -124,7 +124,7 @@ or: "namespace": "default", "name": "amqp1_0-source", "topicName": "user-op-queue-topic", - "archive": "connectors/pulsar-io-amqp1_0-{{connector:version}}.nar", + "archive": "connectors/pulsar-io-amqp1_0-3.1.0.4.nar", "parallelism": 1, "configs": { "connection": { @@ -156,7 +156,7 @@ or: namespace: "default" name: "amqp1_0-source" topicName: "user-op-queue-topic" - archive: "connectors/pulsar-io-amqp1_0-{{connector:version}}.nar" + archive: "connectors/pulsar-io-amqp1_0-3.1.0.4.nar" parallelism: 1 configs: @@ -177,7 +177,7 @@ or namespace: default name: amqp1_0-source topicName: user-op-queue-topic - archive: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + archive: connectors/pulsar-io-amqp1_0-3.1.0.4.nar parallelism: 1 configs: connection: @@ -208,7 +208,7 @@ kind: Source metadata: name: amqp-source-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSource replicas: 1 output: @@ -231,7 +231,7 @@ spec: cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar ``` @@ -243,7 +243,7 @@ kind: Source metadata: name: amqp-source-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSource replicas: 1 output: @@ -272,7 +272,7 @@ spec: cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar ``` @@ -294,7 +294,7 @@ This example shows how to create an AMQP1_0 source connector on a Pulsar cluster ``` PULSAR_HOME/bin/pulsar-admin sources create \ --name amqp1_0-source \ ---archive pulsar-io-amqp1_0-{{connector:version}}.nar \ +--archive pulsar-io-amqp1_0-3.1.0.4.nar \ --classname org.apache.pulsar.ecosystem.io.amqp.AmqpSource \ --source-config-file amqp-source-config.yaml ``` @@ -316,7 +316,7 @@ This example describes how to use the AMQP1_0 source connector to feed data from 2. Copy the NAR package of the AMQP1_0 source connector to the Pulsar connectors directory. ``` - cp pulsar-io-amqp1_0-{{connector:version}}.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + cp pulsar-io-amqp1_0-3.1.0.4.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-3.1.0.4.nar ``` 3. Start Pulsar in standalone mode. @@ -333,7 +333,7 @@ This example describes how to use the AMQP1_0 source connector to feed data from ``` Searching for connectors in /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./connectors - Found connector ConnectorDefinition(name=amqp1_0, description=AMQP1_0 source and AMQP1_0 connector, sourceClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSource, sinkClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSink, sourceConfigClass=null, sinkConfigClass=null) from /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + Found connector ConnectorDefinition(name=amqp1_0, description=AMQP1_0 source and AMQP1_0 connector, sourceClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSource, sinkClass=org.apache.pulsar.ecosystem.io.amqp.AmqpSink, sourceConfigClass=null, sinkConfigClass=null) from /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./connectors/pulsar-io-amqp1_0-3.1.0.4.nar Searching for functions in /Volumes/other/apache-pulsar-2.8.0-SNAPSHOT/./functions ``` @@ -482,7 +482,7 @@ This example explains how to create an AMQP1_0 source connector on an on-premise 1. Copy the NAR package of the AMQP1_0 connector to the Pulsar connectors directory. ``` - cp pulsar-io-amqp1_0-{{connector:version}}.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + cp pulsar-io-amqp1_0-3.1.0.4.nar $PULSAR_HOME/connectors/pulsar-io-amqp1_0-3.1.0.4.nar ``` 2. Reload all [built-in connectors](https://pulsar.apache.org/docs/en/next/io-connectors/). @@ -534,7 +534,7 @@ This example demonstrates how to create an AMQP1_0 source connector through Func metadata: name: amqp-source-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSource replicas: 1 output: @@ -557,7 +557,7 @@ This example demonstrates how to create an AMQP1_0 source connector through Func cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar ``` @@ -569,7 +569,7 @@ Or: metadata: name: amqp-source-sample spec: - image: streamnative/pulsar-io-amqp-1-0:{{connector:version}} + image: streamnative/pulsar-io-amqp-1-0:3.1.0.4 className: org.apache.pulsar.ecosystem.io.amqp.AmqpSource replicas: 1 output: @@ -599,7 +599,7 @@ Or: cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-amqp1_0-{{connector:version}}.nar + jar: connectors/pulsar-io-amqp1_0-3.1.0.4.nar clusterName: test-pulsar ``` diff --git a/io-amqp1_0-impl/pom.xml b/io-amqp1_0-impl/pom.xml index dcbe757c..2940defb 100644 --- a/io-amqp1_0-impl/pom.xml +++ b/io-amqp1_0-impl/pom.xml @@ -25,7 +25,7 @@ pulsar-io-amqp1_0-parent org.apache.pulsar.ecosystem - 3.0.0-SNAPSHOT + 3.1.0.4 4.0.0 diff --git a/pom.xml b/pom.xml index 863ca609..c5b80b87 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,4 @@ - + - + org.apache apache 18 - 4.0.0 - org.apache.pulsar.ecosystem pulsar-io-amqp1_0-parent pom - 3.0.0-SNAPSHOT + 3.1.0.4 Pulsar Ecosystem :: IO Connector :: AMQP1_0 This is an Apache Pulsar AMQP1_0 connector - 17 17 @@ -46,22 +41,19 @@ false 3.1.8 2 - 2.12.6.1 1.18.22 - 3.0.1.2 + 3.1.0.4 1.8.0 2.17.1 1.7.25 - 4.13.1 2.22.0 2.0.0-beta.5 1.19.0 4.2.0 - 3.0 3.0.0 @@ -71,7 +63,6 @@ 6.19 4.2.2 - Apache License, Version 2.0 @@ -79,12 +70,10 @@ repo - io-amqp1_0-impl tests - @@ -141,17 +130,14 @@ - - org.apache.qpid qpid-jms-client ${qpid.version} - org.slf4j @@ -168,7 +154,6 @@ log4j-slf4j-impl ${log4j2.version} - org.projectlombok @@ -180,18 +165,15 @@ spotbugs-annotations provided - io.streamnative pulsar-io-core - com.fasterxml.jackson.core jackson-databind - junit @@ -224,7 +206,6 @@ test - @@ -236,12 +217,12 @@ ${java.version} ${java.version} - + -Xlint:deprecation -Xlint:unchecked -Xpkginfo:always - + @@ -362,38 +343,32 @@ - - + org.apache.maven.plugins maven-compiler-plugin - org.apache.maven.plugins maven-surefire-plugin - org.apache.nifi nifi-nar-maven-plugin - com.mycila license-maven-plugin - org.apache.maven.plugins maven-checkstyle-plugin - com.github.spotbugs @@ -401,5 +376,24 @@ - + + + ossrh + https://s01.oss.sonatype.org/service/local/repositories/iostreamnative-2531/content + + + nexus-snapshot + https://s01.oss.sonatype.org/content/repositories/snapshots + + + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + diff --git a/tests/Dockerfile b/tests/Dockerfile index f0a5ecd8..8ba5e3ba 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -18,7 +18,7 @@ # ARG PULSAR_IMAGE_TAG -FROM streamnative/pulsar:${PULSAR_IMAGE_TAG} +FROM docker.cloudsmith.io/streamnative/staging/pulsar:${PULSAR_IMAGE_TAG} ### Add connector COPY ./src/test/resources/pulsar-io-amqp1_0.nar /pulsar/connectors/pulsar-io-amqp1_0.nar diff --git a/tests/pom.xml b/tests/pom.xml index 023a08e2..42560f38 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -25,7 +25,7 @@ pulsar-io-amqp1_0-parent org.apache.pulsar.ecosystem - 3.0.0-SNAPSHOT + 3.1.0.4 4.0.0