You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2018/06/06 17:16:30 UTC

impala git commit: IMPALA-7124: delete keystore when formatting cluster

Repository: impala
Updated Branches:
  refs/heads/master af4909fdf -> 8f7a3f9c6


IMPALA-7124: delete keystore when formatting cluster

This avoids leftover keystore files from previous instances
of the cluster, e.g. testdata/cluster/cdh6/node-1/data/kms.keystore.
I checked on my local system and that is the only file outside of
the nn and dn subdirectories.

Change-Id: I9e6c1afa0df95b26446ccafa0c942e28ba848dae
Reviewed-on: http://gerrit.cloudera.org:8080/10613
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Philip Zeyliger <ph...@cloudera.com>


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

Branch: refs/heads/master
Commit: 8f7a3f9c6c48da83bcb94e3fd7d2f824ef6e1b4a
Parents: af4909f
Author: Tim Armstrong <ta...@cloudera.com>
Authored: Tue Jun 5 22:44:37 2018 -0700
Committer: Tim Armstrong <ta...@cloudera.com>
Committed: Wed Jun 6 17:16:15 2018 +0000

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


http://git-wip-us.apache.org/repos/asf/impala/blob/8f7a3f9c/testdata/cluster/admin
----------------------------------------------------------------------
diff --git a/testdata/cluster/admin b/testdata/cluster/admin
index f0a4a81..534bc45 100755
--- a/testdata/cluster/admin
+++ b/testdata/cluster/admin
@@ -479,7 +479,9 @@ function restart {
 }
 
 function delete_data {
+  # Delete namenode, datanode and KMS data while preserving directory structure.
   rm -rf "$NODES_DIR/$NODE_PREFIX"*/data/dfs/{nn,dn}/*
+  rm -f "$NODES_DIR/$NODE_PREFIX"*/data/kms.keystore
   delete_kudu_data
 }