提交 8aa8e4f9 编写于 作者: T Till Rohrmann

[scripts] Fixes correct Flink bin path usage in scripts

上级 6b0c0e4c
...@@ -452,12 +452,12 @@ public final class ConfigConstants { ...@@ -452,12 +452,12 @@ public final class ConfigConstants {
public static final String FLINK_JVM_OPTIONS = "env.java.opts"; public static final String FLINK_JVM_OPTIONS = "env.java.opts";
// --------------------------- Recovery ----------------------------------- // --------------------------- Recovery -----------------------------------
/** Defines recovery mode used for the cluster execution ("standalone", "zookeeper") */ /** Defines recovery mode used for the cluster execution ("standalone", "zookeeper") */
public static final String RECOVERY_MODE = "recovery.mode"; public static final String RECOVERY_MODE = "recovery.mode";
// --------------------------- ZooKeeper ---------------------------------- // --------------------------- ZooKeeper ----------------------------------
/** ZooKeeper servers. */ /** ZooKeeper servers. */
public static final String ZOOKEEPER_QUORUM_KEY = "ha.zookeeper.quorum"; public static final String ZOOKEEPER_QUORUM_KEY = "ha.zookeeper.quorum";
......
...@@ -72,4 +72,4 @@ if [[ $STARTSTOP == "start" ]]; then ...@@ -72,4 +72,4 @@ if [[ $STARTSTOP == "start" ]]; then
fi fi
fi fi
${bin}/flink-daemon.sh $STARTSTOP jobmanager "${args}" ${FLINK_BIN_DIR}/flink-daemon.sh $STARTSTOP jobmanager "${args}"
...@@ -49,7 +49,7 @@ else ...@@ -49,7 +49,7 @@ else
echo "Starting cluster (${STREAMING_MODE} mode)." echo "Starting cluster (${STREAMING_MODE} mode)."
# Start single JobManager on this machine # Start single JobManager on this machine
"$bin"/jobmanager.sh start cluster ${STREAMING_MODE} "$FLINK_BIN_DIR"/jobmanager.sh start cluster ${STREAMING_MODE}
fi fi
shopt -u nocasematch shopt -u nocasematch
......
...@@ -39,7 +39,7 @@ while read server ; do ...@@ -39,7 +39,7 @@ while read server ; do
id=${BASH_REMATCH[1]} id=${BASH_REMATCH[1]}
address=${BASH_REMATCH[2]} address=${BASH_REMATCH[2]}
ssh -n $FLINK_SSH_OPTS $address -- "nohup /bin/bash -l $bin/zookeeper.sh start $id &" ssh -n $FLINK_SSH_OPTS $address -- "nohup /bin/bash -l $FLINK_BIN_DIR/zookeeper.sh start $id &"
else else
echo "[WARN] Parse error. Skipping config entry '$server'." echo "[WARN] Parse error. Skipping config entry '$server'."
fi fi
......
...@@ -26,7 +26,7 @@ bin=`cd "$bin"; pwd` ...@@ -26,7 +26,7 @@ bin=`cd "$bin"; pwd`
readSlaves readSlaves
for slave in ${SLAVES[@]}; do for slave in ${SLAVES[@]}; do
ssh -n $FLINK_SSH_OPTS $slave -- "nohup /bin/bash -l $bin/taskmanager.sh stop &" ssh -n $FLINK_SSH_OPTS $slave -- "nohup /bin/bash -l $FLINK_BIN_DIR/taskmanager.sh stop &"
done done
# Stop JobManager instance(s) # Stop JobManager instance(s)
...@@ -36,10 +36,10 @@ if [[ $RECOVERY_MODE == "zookeeper" ]]; then ...@@ -36,10 +36,10 @@ if [[ $RECOVERY_MODE == "zookeeper" ]]; then
readMasters readMasters
for master in ${MASTERS[@]}; do for master in ${MASTERS[@]}; do
ssh -n $FLINK_SSH_OPTS $master -- "nohup /bin/bash -l $bin/jobmanager.sh stop &" ssh -n $FLINK_SSH_OPTS $master -- "nohup /bin/bash -l $FLINK_BIN_DIR/jobmanager.sh stop &"
done done
else else
"$bin"/jobmanager.sh stop "$FLINK_BIN_DIR"/jobmanager.sh stop
fi fi
shopt -u nocasematch shopt -u nocasematch
...@@ -39,7 +39,7 @@ while read server ; do ...@@ -39,7 +39,7 @@ while read server ; do
id=${BASH_REMATCH[1]} id=${BASH_REMATCH[1]}
server=${BASH_REMATCH[2]} server=${BASH_REMATCH[2]}
ssh -n $FLINK_SSH_OPTS $server -- "nohup /bin/bash -l $bin/zookeeper.sh stop &" ssh -n $FLINK_SSH_OPTS $server -- "nohup /bin/bash -l $FLINK_BIN_DIR/zookeeper.sh stop &"
else else
echo "[WARN] Parse error. Skipping config entry '$server'." echo "[WARN] Parse error. Skipping config entry '$server'."
fi fi
......
...@@ -64,4 +64,4 @@ if [[ $STARTSTOP == "start" ]]; then ...@@ -64,4 +64,4 @@ if [[ $STARTSTOP == "start" ]]; then
args="--configDir ${FLINK_CONF_DIR} --streamingMode ${STREAMINGMODE}" args="--configDir ${FLINK_CONF_DIR} --streamingMode ${STREAMINGMODE}"
fi fi
${bin}/flink-daemon.sh $STARTSTOP taskmanager "${args}" ${FLINK_BIN_DIR}/flink-daemon.sh $STARTSTOP taskmanager "${args}"
...@@ -53,4 +53,4 @@ if [[ $STARTSTOP == "start" ]]; then ...@@ -53,4 +53,4 @@ if [[ $STARTSTOP == "start" ]]; then
args="--zkConfigFile $ZK_CONF --peerId $PEER_ID" args="--zkConfigFile $ZK_CONF --peerId $PEER_ID"
fi fi
${bin}/flink-daemon.sh $STARTSTOP zookeeper "${args}" ${FLINK_BIN_DIR}/flink-daemon.sh $STARTSTOP zookeeper "${args}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册