Repository: incubator-samza-hello-samza
Updated Branches:
  refs/heads/master 1b5006b5c -> 3fead6c73


SAMZA-293: make installing projects before creating deploy direcotry possible


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

Branch: refs/heads/master
Commit: 3fead6c7392241e93e0248a23b7e93674383ef93
Parents: 1b5006b
Author: Yan Fang <[email protected]>
Authored: Tue Jul 8 09:01:35 2014 -0700
Committer: Yan Fang <[email protected]>
Committed: Tue Jul 8 09:01:35 2014 -0700

----------------------------------------------------------------------
 bin/grid | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-samza-hello-samza/blob/3fead6c7/bin/grid
----------------------------------------------------------------------
diff --git a/bin/grid b/bin/grid
index 687bf84..1738464 100755
--- a/bin/grid
+++ b/bin/grid
@@ -57,11 +57,13 @@ install_all() {
 }
 
 install_zookeeper() {
+  mkdir -p "$DEPLOY_ROOT_DIR"
   install zookeeper $DOWNLOAD_ZOOKEEPER zookeeper-3.4.3
   cp "$DEPLOY_ROOT_DIR/zookeeper/conf/zoo_sample.cfg" 
"$DEPLOY_ROOT_DIR/zookeeper/conf/zoo.cfg"
 }
 
 install_yarn() {
+  mkdir -p "$DEPLOY_ROOT_DIR"
   install yarn $DOWNLOAD_YARN hadoop-2.2.0
   cp "$BASE_DIR/conf/yarn-site.xml" 
"$DEPLOY_ROOT_DIR/yarn/etc/hadoop/yarn-site.xml"
   if [ ! -f "$HOME/.samza/conf/yarn-site.xml" ]; then
@@ -71,6 +73,7 @@ install_yarn() {
 }
 
 install_kafka() {
+  mkdir -p "$DEPLOY_ROOT_DIR"
   install kafka $DOWNLOAD_KAFKA kafka_2.9.2-0.8.1.1
   # have to use SIGTERM since nohup on appears to ignore SIGINT
   # and Kafka switched to SIGINT in KAFKA-1031.
@@ -80,6 +83,7 @@ install_kafka() {
 }
 
 install_samza() {
+  mkdir -p "$DEPLOY_ROOT_DIR"
   if [ -d "$DOWNLOAD_CACHE_DIR/incubator-samza/.git" ]; then
     pushd "$DOWNLOAD_CACHE_DIR/incubator-samza"
     git fetch origin

Reply via email to