pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] sijie closed pull request #2325: [website] update downlink used for quickstart
Date Wed, 08 Aug 2018 03:39:17 GMT
sijie closed pull request #2325: [website] update downlink used for quickstart
URL: https://github.com/apache/incubator-pulsar/pull/2325
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site2/docs/functions-quickstart.md b/site2/docs/functions-quickstart.md
index 980a2c6a96..9d3690e743 100644
--- a/site2/docs/functions-quickstart.md
+++ b/site2/docs/functions-quickstart.md
@@ -55,7 +55,9 @@ $ bin/pulsar-admin functions localrun \
 ```
 
 > #### Multiple input topics allowed
+>
 > In the example above, a single topic was specified using the `--inputs` flag. You can
also specify multiple input topics as a comma-separated list using the same flag. Here's an
example:
+>
 > ```bash
 > --inputs topic1,topic2
 > ```
@@ -210,7 +212,7 @@ If you see `Deleted successfully` in the output, then you've succesfully
run, up
 
 > In order to write and run the [Python](functions-api.md#functions-for-python) function
below, you'll need to install a few dependencies:
 > ```bash
-> $ pip install pulsar-client protobuf futures grpcio grpcio-tools
+> $ pip install pulsar-client
 > ```
 
 In the above examples, we ran and managed a pre-written Pulsar Function and saw how it worked.
To really get our hands dirty, let's write and our own function from scratch, using the Python
API. This simple function will also take a string as input but it will reverse the string
and publish the resulting, reversed string to the specified topic.
diff --git a/site2/website/scripts/replace.js b/site2/website/scripts/replace.js
index 25e48c1ea6..8366185de6 100644
--- a/site2/website/scripts/replace.js
+++ b/site2/website/scripts/replace.js
@@ -22,11 +22,11 @@ function downloadPageUrl() {
 }
 
 function binaryReleaseUrl(version) {
-  return `http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-${version}/apache-pulsar-${version}-bin.tar.gz`
+  return `https://archive.apache.org/dist/incubator/pulsar/pulsar-${version}/apache-pulsar-${version}-bin.tar.gz`
 }
 
 function connectorReleaseUrl(version) {
-  return `http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-${version}/apache-pulsar-io-connectors-${version}-bin.tar.gz`
+  return `https://archive.apache.org/dist/incubator/pulsar/pulsar-${version}/apache-pulsar-io-connectors-${version}-bin.tar.gz`
 }
 
 function rpmReleaseUrl(version, type) {
diff --git a/site2/website/versioned_docs/version-2.1.0-incubating/functions-quickstart.md
b/site2/website/versioned_docs/version-2.1.0-incubating/functions-quickstart.md
index caf74f9f3d..8f214bf451 100644
--- a/site2/website/versioned_docs/version-2.1.0-incubating/functions-quickstart.md
+++ b/site2/website/versioned_docs/version-2.1.0-incubating/functions-quickstart.md
@@ -56,7 +56,9 @@ $ bin/pulsar-admin functions localrun \
 ```
 
 > #### Multiple input topics allowed
+>
 > In the example above, a single topic was specified using the `--inputs` flag. You can
also specify multiple input topics as a comma-separated list using the same flag. Here's an
example:
+>
 > ```bash
 > --inputs topic1,topic2
 > ```
@@ -211,7 +213,7 @@ If you see `Deleted successfully` in the output, then you've succesfully
run, up
 
 > In order to write and run the [Python](functions-api.md#functions-for-python) function
below, you'll need to install a few dependencies:
 > ```bash
-> $ pip install pulsar-client protobuf futures grpcio grpcio-tools
+> $ pip install pulsar-client
 > ```
 
 In the above examples, we ran and managed a pre-written Pulsar Function and saw how it worked.
To really get our hands dirty, let's write and our own function from scratch, using the Python
API. This simple function will also take a string as input but it will reverse the string
and publish the resulting, reversed string to the specified topic.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message