Repository: incubator-impala
Updated Branches:
  refs/heads/master 26805809f -> 585ed5aaa


IMPALA-4553: ntpd must be synchronized for kudu to start.

When ntpd is not synchronized, kudu initialization fails on the master
node:

    F1129 16:37:28.969956 15230 master_main.cc:68] Check failed:
    _s.ok() Bad status: Service unavailable: Cannot initialize clock:
    Error reading clock. Clock considered unsynchronized

Change-Id: I371e01e21246a8c0ece98ca7d4bf6761615127b4
Reviewed-on: http://gerrit.cloudera.org:8080/5258
Reviewed-by: Jim Apple <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/90bf40d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/90bf40d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/90bf40d2

Branch: refs/heads/master
Commit: 90bf40d213001060e8031d5606c367e4896427ed
Parents: 2680580
Author: Jim Apple <[email protected]>
Authored: Tue Nov 29 09:22:40 2016 -0800
Committer: Impala Public Jenkins <[email protected]>
Committed: Wed Nov 30 00:28:02 2016 +0000

----------------------------------------------------------------------
 testdata/cluster/admin | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/90bf40d2/testdata/cluster/admin
----------------------------------------------------------------------
diff --git a/testdata/cluster/admin b/testdata/cluster/admin
index bbb4755..ee424ff 100755
--- a/testdata/cluster/admin
+++ b/testdata/cluster/admin
@@ -293,6 +293,13 @@ function start_cluster {
 
   if [ ${#SUPPORTED_SERVICES[@]} -gt 0 ]; then
     for SERVICE in ${SUPPORTED_SERVICES[@]-}; do
+      # We only run ntp-wait when it is available. That availability is 
checked by the
+      # call to ntp-wait --help.
+      if [[ "${SERVICE}" == "kudu" ]] && ntp-wait --help >/dev/null 
2>/dev/null \
+           && ! ntp-wait -v; then
+        echo "ntp-wait failed; cannot start kudu"
+        return 1
+      fi
       start $SERVICE
     done
 

Reply via email to