[hotfix][scripts] Fix zookeeper quorum regex
Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/3e860b40 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/3e860b40 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/3e860b40 Branch: refs/heads/table-retraction Commit: 3e860b40761b27904edecb981aa7a29bc1e89aec Parents: 83b99f8 Author: Robert Metzger <[email protected]> Authored: Thu Mar 23 15:11:57 2017 +0100 Committer: Robert Metzger <[email protected]> Committed: Thu Mar 23 15:11:57 2017 +0100 ---------------------------------------------------------------------- flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/3e860b40/flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh ---------------------------------------------------------------------- diff --git a/flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh b/flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh index 67d5349..05a5208 100755 --- a/flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh +++ b/flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh @@ -35,7 +35,7 @@ while read server ; do server=$(echo -e "${server}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') # trim # match server.id=address[:port[:port]] - if [[ $server =~ ^server\.([0-9])+[[:space:]]*\=([^: \#]+) ]]; then + if [[ $server =~ ^server\.([0-9]+)[[:space:]]*\=([^: \#]+) ]]; then id=${BASH_REMATCH[1]} address=${BASH_REMATCH[2]}
