You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by xi...@apache.org on 2017/10/27 00:35:07 UTC

samza-hello-samza git commit: Update README and add deploy.sh

Repository: samza-hello-samza
Updated Branches:
  refs/heads/master 1c3f5ac92 -> 4c374f747


Update README and add deploy.sh


Project: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/commit/4c374f74
Tree: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/tree/4c374f74
Diff: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/diff/4c374f74

Branch: refs/heads/master
Commit: 4c374f747ad3f7bb90dfe752d95151421d1566ce
Parents: 1c3f5ac
Author: xiliu <xi...@xiliu-ld1.linkedin.biz>
Authored: Thu Oct 26 17:32:49 2017 -0700
Committer: xiliu <xi...@xiliu-ld1.linkedin.biz>
Committed: Thu Oct 26 17:33:22 2017 -0700

----------------------------------------------------------------------
 README.md     | 16 ++--------------
 bin/deploy.sh | 26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/samza-hello-samza/blob/4c374f74/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 22a5869..4495fe5 100644
--- a/README.md
+++ b/README.md
@@ -39,22 +39,10 @@ Once the grid command completes, you can verify that YARN is up and running by g
 
 #### 3. Build a Samza Application Package
 
-Before you can run a Samza application, you need to build a package for it. This package is what YARN uses to deploy your apps on the grid.
-
-_NOTE_: if you are building from the latest branch of hello-samza project, make sure that you run the following step from your local Samza project first:
-
-```
-git clone https://github.com/apache/samza.git
-cd samza
-./gradlew publishToMavenLocal
-```
-
-Then, you can continue w/ the following command in hello-samza project:
+Before you can run a Samza application, you need to build a package for it. This package is what YARN uses to deploy your apps on the grid. Use the following command in hello-samza project to build and deploy the example applications:
 
 ```
-mvn clean package
-mkdir -p deploy/samza
-tar -xvf ./target/hello-samza-0.14.0-SNAPSHOT-dist.tar.gz -C deploy/samza
+./bin/deploy.sh
 ```
 
 #### 4. Run a Samza Application

http://git-wip-us.apache.org/repos/asf/samza-hello-samza/blob/4c374f74/bin/deploy.sh
----------------------------------------------------------------------
diff --git a/bin/deploy.sh b/bin/deploy.sh
new file mode 100755
index 0000000..14c3a5e
--- /dev/null
+++ b/bin/deploy.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+home_dir=`pwd`
+base_dir=$(dirname $0)/..
+cd $base_dir
+base_dir=`pwd`
+
+mvn clean package
+mkdir -p $base_dir/deploy/samza
+tar -xvf $base_dir/target/hello-samza-0.13.1-dist.tar.gz -C $base_dir/deploy/samza