You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by bo...@apache.org on 2019/06/07 21:16:47 UTC

[samza] branch 1.2.0 updated: updated docs

This is an automated email from the ASF dual-hosted git repository.

boryas pushed a commit to branch 1.2.0
in repository https://gitbox.apache.org/repos/asf/samza.git


The following commit(s) were added to refs/heads/1.2.0 by this push:
     new a9df17d  updated docs
a9df17d is described below

commit a9df17dfd85e5f4ea37c4007996c08fd19d8c8be
Author: Boris S <bs...@linkedin.com>
AuthorDate: Fri Jun 7 13:26:21 2019 -0700

    updated docs
---
 docs/_config.yml                                    |   2 +-
 .../versioned/hello-samza-high-level-code.md        |   9 ++++-----
 .../versioned/hello-samza-high-level-yarn.md        |   5 ++---
 .../versioned/samza-rest-getting-started.md         |   4 ++--
 docs/startup/hello-samza/versioned/index.md         |   5 ++---
 gradle/wrapper/gradle-wrapper.jar                   | Bin 54417 -> 54783 bytes
 gradlew                                             |   6 +++---
 7 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/docs/_config.yml b/docs/_config.yml
index ef574b5..31edfbc 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -25,7 +25,7 @@ exclude: [_docs]
 baseurl: http://samza.apache.org
 version: latest
 # this is the version you will go if you click 'switch version' in "latest" pages.
-latest-release: '1.1.0'
+latest-release: '1.2.0'
 collections:
   menu:
     output: false
diff --git a/docs/learn/tutorials/versioned/hello-samza-high-level-code.md b/docs/learn/tutorials/versioned/hello-samza-high-level-code.md
index a881b51..a631cd0 100644
--- a/docs/learn/tutorials/versioned/hello-samza-high-level-code.md
+++ b/docs/learn/tutorials/versioned/hello-samza-high-level-code.md
@@ -32,7 +32,6 @@ Check out the hello-samza project:
 {% highlight bash %}
 git clone https://git.apache.org/samza-hello-samza.git hello-samza
 cd hello-samza
-git checkout latest
 {% endhighlight %}
 
 This project already contains implementations of the wikipedia application using both the Low Level Task API and the High Level Streams API. The Low Level Task API implementations are in the `samza.examples.wikipedia.task` package. The High Level Streams API implementation is in the `samza.examples.wikipedia.application` package.
@@ -81,7 +80,7 @@ job.default.system=kafka
 yarn.package.path=file://${basedir}/target/${project.artifactId}-${pom.version}-dist.tar.gz
 {% endhighlight %}
 
-Be sure to include the Apache header. The project will not compile without it. 
+Be sure to include the Apache header. The project will not compile without it.
 
 Here's a brief summary of what we configured so far.
 
@@ -94,7 +93,7 @@ Here's a brief summary of what we configured so far.
 
 These basic configurations are enough to launch the application on YARN but we haven’t defined any streaming systems for Samza to use, so the application would not process anything.
 
-Next, let's define the streaming systems with which the application will interact. 
+Next, let's define the streaming systems with which the application will interact.
 
 #### Define Systems
 This Wikipedia application will consume events from Wikipedia and produce stats to a Kafka topic. We need to define those systems in config before Samza can use them. Add the following lines to the config:
@@ -140,7 +139,7 @@ streams.en-wikinews.samza.system=wikipedia
 streams.en-wikinews.samza.physical.name=#en.wikinews
 {% endhighlight %}
 
-The above configurations declare 3 streams with IDs, _en-wikipedia_, _en-wiktionary_, and _en-wikinews_. It associates each stream with the _wikipedia_ system we defined earlier and set the physical name to the corresponding Wikipedia channel. 
+The above configurations declare 3 streams with IDs, _en-wikipedia_, _en-wiktionary_, and _en-wikinews_. It associates each stream with the _wikipedia_ system we defined earlier and set the physical name to the corresponding Wikipedia channel.
 
 Since all the Kafka streams for cases 2-3 are on the default system and do not include special characters in their names, we do not need to configure them explicitly.
 
@@ -181,7 +180,7 @@ import org.apache.samza.operators.StreamGraph;
 public class MyWikipediaApplication implements StreamApplication{
   @Override
   public void init(StreamGraph streamGraph, Config config) {
-    
+
   }
 }
 {% endhighlight %}
diff --git a/docs/learn/tutorials/versioned/hello-samza-high-level-yarn.md b/docs/learn/tutorials/versioned/hello-samza-high-level-yarn.md
index cbdddab..22f59f0 100644
--- a/docs/learn/tutorials/versioned/hello-samza-high-level-yarn.md
+++ b/docs/learn/tutorials/versioned/hello-samza-high-level-yarn.md
@@ -29,7 +29,6 @@ Check out the hello-samza project:
 {% highlight bash %}
 git clone https://git.apache.org/samza-hello-samza.git hello-samza
 cd hello-samza
-git checkout latest
 {% endhighlight %}
 
 This project contains everything you'll need to run your first Samza application.
@@ -63,7 +62,7 @@ Then, you can continue w/ the following command in hello-samza project:
 {% highlight bash %}
 mvn clean package
 mkdir -p deploy/samza
-tar -xvf ./target/hello-samza-1.1.1-SNAPSHOT-dist.tar.gz -C deploy/samza
+tar -xvf ./target/hello-samza-1.1.1-dist.tar.gz -C deploy/samza
 {% endhighlight %}
 
 ### Run a Samza Application
@@ -78,7 +77,7 @@ The app will do all of the following:
 
 1. Consume 3 feeds of real-time edits from Wikipedia
 3. Parse the events to extract information about the size of the edit, who made the change, etc.
-4. Calculate counts, every ten seconds, for all edits that were made during that window 
+4. Calculate counts, every ten seconds, for all edits that were made during that window
 5. Output the counts to the wikipedia-stats topic
 
 For details about how the app works, take a look at the [code walkthrough](hello-samza-high-level-code.html).
diff --git a/docs/learn/tutorials/versioned/samza-rest-getting-started.md b/docs/learn/tutorials/versioned/samza-rest-getting-started.md
index 2690df4..3131d1c 100644
--- a/docs/learn/tutorials/versioned/samza-rest-getting-started.md
+++ b/docs/learn/tutorials/versioned/samza-rest-getting-started.md
@@ -23,7 +23,7 @@ This tutorial depends on [hello-samza](../../../startup/hello-samza/{{site.versi
 
 Lets get started.
 
-### Run Hello Samza Jobs Locally 
+### Run Hello Samza Jobs Locally
 
 Follow the [hello-samza](../../../startup/hello-samza/{{site.version}}/) tutorial to setup a local grid and run the wikipedia jobs. Skip the [shutdown step](../../../startup/hello-samza/{{site.version}}/#shutdown) because you need the grid to still be running to query the REST service for jobs. You can optionally skip all the ```kafka-console-consumer.sh``` commands if you don't want to verify the output of the jobs.
 
@@ -48,7 +48,7 @@ Run the following commands:
 {% highlight bash %}
 cd samza-rest/build/distributions/
 mkdir -p deploy/samza-rest
-tar -xvf ./samza-rest-1.1.1-SNAPSHOT.tgz -C deploy/samza-rest
+tar -xvf ./samza-rest-1.1.1.tgz -C deploy/samza-rest
 {% endhighlight %}
 
 #### Configure the Installations Path
diff --git a/docs/startup/hello-samza/versioned/index.md b/docs/startup/hello-samza/versioned/index.md
index 30384fe..1d68a97 100644
--- a/docs/startup/hello-samza/versioned/index.md
+++ b/docs/startup/hello-samza/versioned/index.md
@@ -25,9 +25,8 @@ The [hello-samza](https://github.com/apache/samza-hello-samza) project is an exa
 Check out the hello-samza project:
 
 {% highlight bash %}
-git clone https://git.apache.org/samza-hello-samza.git hello-samza
+git clone https://gitbox.apache.org/repos/asf/samza-hello-samza.git hello-samza
 cd hello-samza
-git checkout latest
 {% endhighlight %}
 
 This project contains everything you'll need to run your first Samza jobs.
@@ -61,7 +60,7 @@ Then, you can continue w/ the following command in hello-samza project:
 {% highlight bash %}
 mvn clean package
 mkdir -p deploy/samza
-tar -xvf ./target/hello-samza-1.1.1-SNAPSHOT-dist.tar.gz -C deploy/samza
+tar -xvf ./target/hello-samza-1.2.0-dist.tar.gz -C deploy/samza
 {% endhighlight %}
 
 ### Run a Samza Job
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 758de96..3f351b7 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradlew b/gradlew
index cccdd3d..4453cce 100755
--- a/gradlew
+++ b/gradlew
@@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
 # Use the maximum available, or set MAX_FD != -1 to use that value.
 MAX_FD="maximum"
 
-warn () {
+warn ( ) {
     echo "$*"
 }
 
-die () {
+die ( ) {
     echo
     echo "$*"
     echo
@@ -155,7 +155,7 @@ if $cygwin ; then
 fi
 
 # Escape application args
-save () {
+save ( ) {
     for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
     echo " "
 }