accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject accumulo git commit: ACCUMULO-4622 Add a `accumulo-cluster restart` command
Date Mon, 17 Apr 2017 16:24:16 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 3b9fd3f5c -> ad34a6ea2


ACCUMULO-4622 Add a `accumulo-cluster restart` command

Closes apache/accumulo#248


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

Branch: refs/heads/master
Commit: ad34a6ea2cb60863c12f54ce5eec04c8c00c9931
Parents: 3b9fd3f
Author: Josh Elser <elserj@apache.org>
Authored: Mon Apr 17 10:52:51 2017 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Mon Apr 17 12:23:56 2017 -0400

----------------------------------------------------------------------
 assemble/bin/accumulo-cluster | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/ad34a6ea/assemble/bin/accumulo-cluster
----------------------------------------------------------------------
diff --git a/assemble/bin/accumulo-cluster b/assemble/bin/accumulo-cluster
index c8a7b2b..ddf8d5d 100755
--- a/assemble/bin/accumulo-cluster
+++ b/assemble/bin/accumulo-cluster
@@ -21,6 +21,7 @@ Usage: accumulo-cluster <command> (<argument> ...)
 
 Commands:
   create-config       Creates cluster config
+  restart             Restarts the Accumulo cluster
   start               Starts Accumulo cluster
   stop                Stops Accumulo cluster
   start-non-tservers  Starts all services except tservers
@@ -310,6 +311,13 @@ function main() {
       echo "localhost" > "$conf/tracers"
       echo "localhost" > "$conf/tservers"
       ;;
+    restart)
+      verify_config
+      stop_all
+      # Make sure the JVM has a chance to fully exit
+      sleep 1
+      start_all
+      ;;
     start)
       verify_config
       start_all


Mime
View raw message