提交 7364ce18 编写于 作者: T Till Rohrmann

[scripts] Adds example settings for zookeeper ha to default flink-conf.yaml

上级 8aa8e4f9
...@@ -277,9 +277,14 @@ readMasters() { ...@@ -277,9 +277,14 @@ readMasters() {
if [ -n "$HOSTWEBUIPORT" ]; then if [ -n "$HOSTWEBUIPORT" ]; then
HOST=$(echo $HOSTWEBUIPORT | cut -f1 -d:) HOST=$(echo $HOSTWEBUIPORT | cut -f1 -d:)
WEBUIPORT=$(echo $HOSTWEBUIPORT | cut -f2 -d:) WEBUIPORT=$(echo $HOSTWEBUIPORT | cut -s -f2 -d:)
MASTERS+=(${HOST}) MASTERS+=(${HOST})
WEBUIPORTS+=(${WEBUIPORT})
if [ -z "$WEBUIPORT" ]; then
WEBUIPORTS+=(0)
else
WEBUIPORTS+=(${WEBUIPORT})
fi
fi fi
done < "$MASTERS_FILE" done < "$MASTERS_FILE"
} }
......
...@@ -136,5 +136,7 @@ state.backend: jobmanager ...@@ -136,5 +136,7 @@ state.backend: jobmanager
# The list of ZooKepper quorum peers that coordinate the high-availability # The list of ZooKepper quorum peers that coordinate the high-availability
# setup. This must be a list of the form # setup. This must be a list of the form
# "host_1[:peerPort[:leaderPort]],host_2[:peerPort[:leaderPort]],..." # "host_1[:peerPort[:leaderPort]],host_2[:peerPort[:leaderPort]],..."
#
#ha.zookeeper.quorum: localhost # recovery.mode: zookeeper
\ No newline at end of file #
# ha.zookeeper.quorum: localhost
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册