You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by ka...@apache.org on 2018/04/18 06:22:52 UTC
[incubator-heron] branch master updated: improving nomad launch
script (#2862)
This is an automated email from the ASF dual-hosted git repository.
karthikz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new 45b953b improving nomad launch script (#2862)
45b953b is described below
commit 45b953bae3cae403abc1407f7d8fd635b3833c8b
Author: Boyang Jerry Peng <je...@gmail.com>
AuthorDate: Tue Apr 17 23:22:50 2018 -0700
improving nomad launch script (#2862)
---
heron/config/src/yaml/conf/nomad/heron_nomad.sh | 5 +++++
heron/config/src/yaml/conf/standalone/heron_nomad.sh | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/heron/config/src/yaml/conf/nomad/heron_nomad.sh b/heron/config/src/yaml/conf/nomad/heron_nomad.sh
index 826ba0d..8524702 100644
--- a/heron/config/src/yaml/conf/nomad/heron_nomad.sh
+++ b/heron/config/src/yaml/conf/nomad/heron_nomad.sh
@@ -7,6 +7,11 @@ CORE_RELEASE_FILE="heron-core.tar.gz"
CORE_RELEASE_DIR="heron-core"
TOPOLOGY_PACKAGE_FILE="topology.tar.gz"
+# remove directory if already exists
+if [ -d "$HERON_NOMAD_WORKING_DIR" ]; then
+ rm -rf $HERON_NOMAD_WORKING_DIR
+fi
+
# Create working directory if it does not exist
mkdir -p ${HERON_NOMAD_WORKING_DIR}
diff --git a/heron/config/src/yaml/conf/standalone/heron_nomad.sh b/heron/config/src/yaml/conf/standalone/heron_nomad.sh
index 826ba0d..8524702 100644
--- a/heron/config/src/yaml/conf/standalone/heron_nomad.sh
+++ b/heron/config/src/yaml/conf/standalone/heron_nomad.sh
@@ -7,6 +7,11 @@ CORE_RELEASE_FILE="heron-core.tar.gz"
CORE_RELEASE_DIR="heron-core"
TOPOLOGY_PACKAGE_FILE="topology.tar.gz"
+# remove directory if already exists
+if [ -d "$HERON_NOMAD_WORKING_DIR" ]; then
+ rm -rf $HERON_NOMAD_WORKING_DIR
+fi
+
# Create working directory if it does not exist
mkdir -p ${HERON_NOMAD_WORKING_DIR}
--
To stop receiving notification emails like this one, please contact
karthikz@apache.org.