This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push: new 2782dcf Update connector download URL (#3793) 2782dcf is described below commit 2782dcf36124b3544ffc013697cd637e2fd7ad1c Author: Like <like_0...@163.com> AuthorDate: Tue Apr 2 01:49:34 2019 +0800 Update connector download URL (#3793) Closes #3777 --- site2/docs/deploy-bare-metal.md | 19 +++++-------------- site2/docs/getting-started-standalone.md | 19 +++++-------------- site2/website/scripts/replace.js | 2 ++ .../versioned_docs/version-2.3.0/deploy-bare-metal.md | 19 +++++-------------- .../version-2.3.0/getting-started-standalone.md | 19 +++++-------------- 5 files changed, 22 insertions(+), 56 deletions(-) diff --git a/site2/docs/deploy-bare-metal.md b/site2/docs/deploy-bare-metal.md index f1780f6..9bb7978 100644 --- a/site2/docs/deploy-bare-metal.md +++ b/site2/docs/deploy-bare-metal.md @@ -117,27 +117,18 @@ one of the following ways: * using [wget](https://www.gnu.org/software/wget): ```shell - $ wget pulsar:connector_release_url + $ wget pulsar:connector_release_url/{connector}-{{pulsar:version}}.nar ``` -Once the tarball is downloaded, in the pulsar directory, untar the io-connectors package and copy the connectors as `connectors` -in the pulsar directory: +Once the nar file is downloaded, copy the file to directory `connectors` in the pulsar directory, +for example, if the connector file `pulsar-io-aerospike-{{pulsar:version}}.nar` is downloaded: ```bash -$ tar xvfz apache-pulsar-io-connectors-{{pulsar:version}}-bin.tar.gz - -// you will find a directory named `apache-pulsar-io-connectors-{{pulsar:version}}` in the pulsar directory -// then copy the connectors - -$ mv apache-pulsar-io-connectors-{{pulsar:version}}/connectors connectors +$ mkdir connectors +$ mv pulsar-io-aerospike-{{pulsar:version}}.nar connectors $ ls connectors pulsar-io-aerospike-{{pulsar:version}}.nar -pulsar-io-cassandra-{{pulsar:version}}.nar -pulsar-io-kafka-{{pulsar:version}}.nar -pulsar-io-kinesis-{{pulsar:version}}.nar -pulsar-io-rabbitmq-{{pulsar:version}}.nar -pulsar-io-twitter-{{pulsar:version}}.nar ... ``` diff --git a/site2/docs/getting-started-standalone.md b/site2/docs/getting-started-standalone.md index 7947b5c..61848e5 100644 --- a/site2/docs/getting-started-standalone.md +++ b/site2/docs/getting-started-standalone.md @@ -74,27 +74,18 @@ If you would like to enable those `builtin` connectors, you can download the con * using [wget](https://www.gnu.org/software/wget): ```shell - $ wget pulsar:connector_release_url + $ wget pulsar:connector_release_url/{connector}-{{pulsar:version}}.nar ``` -Once the tarball is downloaded, in the pulsar directory, untar the io-connectors package and copy the connectors as `connectors` -in the pulsar directory: +Once the nar file is downloaded, copy the file to directory `connectors` in the pulsar directory, +for example, if the connector file `pulsar-io-aerospike-{{pulsar:version}}.nar` is downloaded: ```bash -$ tar xvfz /path/to/apache-pulsar-io-connectors-{{pulsar:version}}-bin.tar.gz - -// you will find a directory named `apache-pulsar-io-connectors-{{pulsar:version}}` in the pulsar directory -// then copy the connectors - -$ cp -r apache-pulsar-io-connectors-{{pulsar:version}}/connectors connectors +$ mkdir connectors +$ mv pulsar-io-aerospike-{{pulsar:version}}.nar connectors $ ls connectors pulsar-io-aerospike-{{pulsar:version}}.nar -pulsar-io-cassandra-{{pulsar:version}}.nar -pulsar-io-kafka-{{pulsar:version}}.nar -pulsar-io-kinesis-{{pulsar:version}}.nar -pulsar-io-rabbitmq-{{pulsar:version}}.nar -pulsar-io-twitter-{{pulsar:version}}.nar ... ``` diff --git a/site2/website/scripts/replace.js b/site2/website/scripts/replace.js index 88e20fc..29bb322 100644 --- a/site2/website/scripts/replace.js +++ b/site2/website/scripts/replace.js @@ -32,6 +32,8 @@ function binaryReleaseUrl(version) { function connectorReleaseUrl(version) { if (version.includes('incubating')) { return `https://archive.apache.org/dist/incubator/pulsar/pulsar-${version}/apache-pulsar-io-connectors-${version}-bin.tar.gz` + } else if (version >= '2.3.0') { + return `https://archive.apache.org/dist/pulsar/pulsar-${version}/connectors` } else { return `https://archive.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-io-connectors-${version}-bin.tar.gz` } diff --git a/site2/website/versioned_docs/version-2.3.0/deploy-bare-metal.md b/site2/website/versioned_docs/version-2.3.0/deploy-bare-metal.md index 6c4c594..0699b44 100644 --- a/site2/website/versioned_docs/version-2.3.0/deploy-bare-metal.md +++ b/site2/website/versioned_docs/version-2.3.0/deploy-bare-metal.md @@ -118,27 +118,18 @@ one of the following ways: * using [wget](https://www.gnu.org/software/wget): ```shell - $ wget pulsar:connector_release_url + $ wget pulsar:connector_release_url/{connector}-{{pulsar:version}}.nar ``` -Once the tarball is downloaded, in the pulsar directory, untar the io-connectors package and copy the connectors as `connectors` -in the pulsar directory: +Once the nar file is downloaded, copy the file to directory `connectors` in the pulsar directory, +for example, if the connector file `pulsar-io-aerospike-{{pulsar:version}}.nar` is downloaded: ```bash -$ tar xvfz apache-pulsar-io-connectors-{{pulsar:version}}-bin.tar.gz - -// you will find a directory named `apache-pulsar-io-connectors-{{pulsar:version}}` in the pulsar directory -// then copy the connectors - -$ mv apache-pulsar-io-connectors-{{pulsar:version}}/connectors connectors +$ mkdir connectors +$ mv pulsar-io-aerospike-{{pulsar:version}}.nar connectors $ ls connectors pulsar-io-aerospike-{{pulsar:version}}.nar -pulsar-io-cassandra-{{pulsar:version}}.nar -pulsar-io-kafka-{{pulsar:version}}.nar -pulsar-io-kinesis-{{pulsar:version}}.nar -pulsar-io-rabbitmq-{{pulsar:version}}.nar -pulsar-io-twitter-{{pulsar:version}}.nar ... ``` diff --git a/site2/website/versioned_docs/version-2.3.0/getting-started-standalone.md b/site2/website/versioned_docs/version-2.3.0/getting-started-standalone.md index dc8f197..119818a 100644 --- a/site2/website/versioned_docs/version-2.3.0/getting-started-standalone.md +++ b/site2/website/versioned_docs/version-2.3.0/getting-started-standalone.md @@ -75,27 +75,18 @@ If you would like to enable those `builtin` connectors, you can download the con * using [wget](https://www.gnu.org/software/wget): ```shell - $ wget pulsar:connector_release_url + $ wget pulsar:connector_release_url/{connector}-{{pulsar:version}}.nar ``` -Once the tarball is downloaded, in the pulsar directory, untar the io-connectors package and copy the connectors as `connectors` -in the pulsar directory: +Once the nar file is downloaded, copy the file to directory `connectors` in the pulsar directory, +for example, if the connector file `pulsar-io-aerospike-{{pulsar:version}}.nar` is downloaded: ```bash -$ tar xvfz /path/to/apache-pulsar-io-connectors-{{pulsar:version}}-bin.tar.gz - -// you will find a directory named `apache-pulsar-io-connectors-{{pulsar:version}}` in the pulsar directory -// then copy the connectors - -$ cp -r apache-pulsar-io-connectors-{{pulsar:version}}/connectors connectors +$ mkdir connectors +$ mv pulsar-io-aerospike-{{pulsar:version}}.nar connectors $ ls connectors pulsar-io-aerospike-{{pulsar:version}}.nar -pulsar-io-cassandra-{{pulsar:version}}.nar -pulsar-io-kafka-{{pulsar:version}}.nar -pulsar-io-kinesis-{{pulsar:version}}.nar -pulsar-io-rabbitmq-{{pulsar:version}}.nar -pulsar-io-twitter-{{pulsar:version}}.nar ... ```