From 9402f60f3ea715eaef2e5f2ea33d873dcb69f73f Mon Sep 17 00:00:00 2001 From: Elmar Weber Date: Fri, 13 Oct 2017 17:50:13 +0200 Subject: [PATCH] - fix #65: wait for reply --- zookeeper/50pzoo.yml | 2 +- zookeeper/51zoo.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index 27e2e169..6c0767b5 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -48,7 +48,7 @@ spec: command: - /bin/sh - -c - - '[ "imok" = "$(echo ruok | nc -w 1 127.0.0.1 2181)" ]' + - '[ "imok" = "$(echo ruok | nc -w 1 -q 1 127.0.0.1 2181)" ]' volumeMounts: - name: config mountPath: /etc/kafka diff --git a/zookeeper/51zoo.yml b/zookeeper/51zoo.yml index 0e8aa77c..c790ec24 100644 --- a/zookeeper/51zoo.yml +++ b/zookeeper/51zoo.yml @@ -51,7 +51,7 @@ spec: command: - /bin/sh - -c - - '[ "imok" = "$(echo ruok | nc -w 1 127.0.0.1 2181)" ]' + - '[ "imok" = "$(echo ruok | nc -w 1 -q 1 127.0.0.1 2181)" ]' volumeMounts: - name: config mountPath: /etc/kafka