mirror of
https://github.com/apache/impala.git
synced 2026-01-07 18:02:33 -05:00
Changes: 1) Consistently use "set -euo pipefail". 2) When an error happens, print the file and line. 3) Consolidated some of the kill scripts. 4) Added better error messages to the load data script. 5) Changed use of #!/bin/sh to bash. Change-Id: I14fef66c46c1b4461859382ba3fd0dee0fbcdce1 Reviewed-on: http://gerrit.cloudera.org:8080/1620 Reviewed-by: Casey Ching <casey@cloudera.com> Tested-by: Internal Jenkins
18 lines
566 B
Bash
Executable File
18 lines
566 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
|
|
|
|
set -euo pipefail
|
|
trap 'echo Error in $0 at line $LINENO: $(awk "NR == $LINENO" $0)' ERR
|
|
|
|
# Kill HBase, then MiniLlama (which includes a MiniDfs, a Yarn RM several NMs).
|
|
$IMPALA_HOME/testdata/bin/kill-sentry-service.sh
|
|
$IMPALA_HOME/testdata/bin/kill-hive-server.sh
|
|
$IMPALA_HOME/testdata/bin/kill-hbase.sh
|
|
$IMPALA_HOME/testdata/bin/kill-mini-dfs.sh
|
|
|
|
for BINARY in impalad statestored catalogd mini-impalad-cluster; do
|
|
if pgrep -U $USER $BINARY; then
|
|
killall -9 -u $USER -q $BINARY
|
|
fi
|
|
done
|