Quanlong Huang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21376


Change subject: IMPALA-13047: Support restarting/killing specified impalads in 
start-impala-cluster.py
......................................................................

IMPALA-13047: Support restarting/killing specified impalads in 
start-impala-cluster.py

This patch adds a new option, --impalad_ids, in start-impala-cluster.py
to specify the impalads to restart/kill. It's a comma seperated list of
the impalad index, starting from 0.

Assuming the current cluster has 3 impalads, to restart the first
impalad:
  bin/start-impala-cluster.py -r --impalad_ids=0
To restart the second and third impalad:
  bin/start-impala-cluster.py -r --impalad_ids=1,2
To kill the last impalad:
  bin/start-impala-cluster.py --kill --impalad_ids=2

To be simple, it's not allowed to change the cluster size (by -s) in the
same command.

This patch also adds logs to show which process is killed, e.g.
  17:33:33 MainThread: Killed statestored (pid 6618)
  17:33:33 MainThread: Killed catalogd (pid 6676)
  17:33:33 MainThread: Killed impalad (pid 6726)
  17:33:33 MainThread: Killed impalad (pid 6729)

Tests:
 - Verified the commands locally

Change-Id: Id4a863853341959eb6870b662d82188e7d570971
---
M bin/start-impala-cluster.py
1 file changed, 70 insertions(+), 21 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/76/21376/1
--
To view, visit http://gerrit.cloudera.org:8080/21376
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id4a863853341959eb6870b662d82188e7d570971
Gerrit-Change-Number: 21376
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com>

Reply via email to