From 15b535bb51ee2ec5a0406f593128f740eb249ef6 Mon Sep 17 00:00:00 2001 From: streamnativebot Date: Thu, 5 Sep 2024 12:23:56 +0000 Subject: [PATCH] "Created by snbot" --- .github/workflows/release.yml | 2 +- docs/cloud-storage-sink.md | 16 +++++----- image/Dockerfile | 2 +- pom.xml | 56 ++++++++++++++--------------------- 4 files changed, 33 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb053467..192846ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: PULSAR_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${pulsar.version}' --non-recursive exec:exec 2>/dev/null` REPO=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null` IMAGE_REPO=streamnative/${REPO} - RUNNER_IMAGE=streamnative/pulsar-functions-java-runner:${PULSAR_VERSION} + RUNNER_IMAGE=snstage/pulsar-functions-java-runner:${PULSAR_VERSION} docker pull ${RUNNER_IMAGE} docker build --build-arg PULSAR_VERSION="$PULSAR_VERSION" -t ${IMAGE_REPO}:${CONNECTOR_VERSION} -f ./image/Dockerfile ./ docker push ${IMAGE_REPO}:${CONNECTOR_VERSION} diff --git a/docs/cloud-storage-sink.md b/docs/cloud-storage-sink.md index d960afcd..e972a5ae 100644 --- a/docs/cloud-storage-sink.md +++ b/docs/cloud-storage-sink.md @@ -13,7 +13,7 @@ You can get the Cloud Storage 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-cloud-storage/releases/download/v{{connector:version}}/pulsar-io-cloud-storage-{{connector:version}}.nar). +- Download the NAR package from [here](https://github.com/streamnative/pulsar-io-cloud-storage/releases/download/v4.0.0-ursa-4-SNAPSHOT/pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar). - Build it from the source code. @@ -33,7 +33,7 @@ You can get the Cloud Storage sink connector using one of the following methods: ```bash ls target - pulsar-io-cloud-storage-{{connector:version}}.nar + pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar ``` ## Use it with Function Mesh @@ -282,7 +282,7 @@ kind: Sink metadata: name: cloud-storage-sink-sample spec: - image: streamnative/pulsar-io-cloud-storage:{{connector:version}} + image: streamnative/pulsar-io-cloud-storage:4.0.0-ursa-4-SNAPSHOT className: org.apache.pulsar.io.jcloud.sink.CloudStorageGenericRecordSink replicas: 1 maxReplicas: 1 @@ -314,7 +314,7 @@ spec: cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-cloud-storage-{{connector:version}}.nar + jar: connectors/pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar clusterName: test-pulsar ``` @@ -334,7 +334,7 @@ This example shows how to create an Cloud Storage sink connector on a Pulsar clu ``` PULSAR_HOME/bin/pulsar-admin sinks create \ ---archive pulsar-io-cloud-storage-{{connector:version}}.nar \ +--archive pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar \ --sink-config-file cloud-storage-sink-config.yaml \ --classname org.apache.pulsar.io.jcloud.sink.CloudStorageGenericRecordSink \ --name cloud-storage-sink @@ -433,7 +433,7 @@ This example explains how to create a Cloud Storage sink connector in an on-prem 1. Copy the NAR package of the Cloud Storage connector to the Pulsar connectors directory. ``` - cp pulsar-io-cloud-storage-{{connector:version}}.nar $PULSAR_HOME/connectors/pulsar-io-cloud-storage-{{connector:version}}.nar + cp pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar $PULSAR_HOME/connectors/pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar ``` 2. Reload all [built-in connectors](https://pulsar.apache.org/docs/en/next/io-connectors/). @@ -481,7 +481,7 @@ This example demonstrates how to create Cloud Storage sink connector through Fun metadata: name: cloud-storage-sink-sample spec: - image: streamnative/pulsar-io-cloud-storage:{{connector:version}} + image: streamnative/pulsar-io-cloud-storage:4.0.0-ursa-4-SNAPSHOT className: org.apache.pulsar.io.jcloud.sink.CloudStorageGenericRecordSink replicas: 1 maxReplicas: 1 @@ -513,7 +513,7 @@ This example demonstrates how to create Cloud Storage sink connector through Fun cpu: "0.1" memory: 1G java: - jar: connectors/pulsar-io-cloud-storage-{{connector:version}}.nar + jar: connectors/pulsar-io-cloud-storage-4.0.0-ursa-4-SNAPSHOT.nar clusterName: test-pulsar ``` diff --git a/image/Dockerfile b/image/Dockerfile index aa9ce43e..520be225 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -18,5 +18,5 @@ # ARG PULSAR_VERSION -FROM streamnative/pulsar-functions-java-runner:${PULSAR_VERSION} +FROM snstage/pulsar-functions-java-runner:${PULSAR_VERSION} COPY --chown=$UID:$GID target/*.nar /pulsar/connectors/ diff --git a/pom.xml b/pom.xml index 6f37bc51..6dd7ca4e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,5 @@ - - + org.apache apache 18 - 4.0.0 - io.streamnative.ecosystem pulsar-io-cloud-storage - 2.9.0-rc-202110221101 + 4.0.0-ursa-4-SNAPSHOT Pulsar Ecosystem :: IO Connector :: Cloud Storage Project Cloud Storage Connector integrates Apache Pulsar with Cloud Storage. - 17 17 @@ -43,12 +40,11 @@ true 4.2.2 2 - 2.13.2 2.13.4.2 1.18.32 - 3.2.2.1 + 4.0.0-ursa-4-SNAPSHOT 1.11.3 3.3.6 1.13.1 @@ -64,14 +60,12 @@ 1.42.1 ${grpc.version} 1.2.22 - 4.13.1 4.2.0 3.7.7 2.0.2 1.15.2 - 3.0 3.1.1 @@ -88,7 +82,6 @@ 4.1.86.Final 0.17.0 - Apache License, Version 2.0 @@ -96,7 +89,6 @@ repo - @@ -211,7 +203,6 @@ avro ${avro.version} - junit @@ -268,25 +259,21 @@ sts ${aws.java.sdk2.version} - org.yaml snakeyaml ${snakeyaml.version} - ch.qos.reload4j reload4j ${reload4j.version} - com.fasterxml.woodstox woodstox-core ${woodstox-core.version} - io.netty netty-bom @@ -294,19 +281,15 @@ pom import - org.apache.thrift libthrift ${libthrift.version} - - - org.projectlombok @@ -318,7 +301,6 @@ spotbugs-annotations provided - io.streamnative @@ -336,7 +318,6 @@ io.streamnative pulsar-client-original - com.fasterxml.jackson.core jackson-databind @@ -544,7 +525,6 @@ com.azure azure-core-http-okhttp - org.apache.logging.log4j @@ -605,9 +585,7 @@ ${pulsar.version} test - - @@ -764,7 +742,6 @@ ${os-maven-plugin.version} - @@ -789,31 +766,26 @@ 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 @@ -832,5 +804,23 @@ bintray https://dl.bintray.com/streamnative/maven + + ossrh + https://s01.oss.sonatype.org/service/local/repositories/0/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/ + +