This is an automated email from the ASF dual-hosted git repository.
evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 53bc87b BIGTOP-3142. Better user expereince when calling
docker-hadoop.sh -d with no cluster running (#500)
53bc87b is described below
commit 53bc87bbdbc06abdc1413dcf973d126dcc415ad0
Author: Evans Ye <[email protected]>
AuthorDate: Mon Mar 18 23:53:48 2019 +0800
BIGTOP-3142. Better user expereince when calling docker-hadoop.sh -d with
no cluster running (#500)
---
provisioner/docker/docker-hadoop.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/provisioner/docker/docker-hadoop.sh
b/provisioner/docker/docker-hadoop.sh
index bf8b53d..ab262cd 100755
--- a/provisioner/docker/docker-hadoop.sh
+++ b/provisioner/docker/docker-hadoop.sh
@@ -161,6 +161,10 @@ smoke-tests() {
}
destroy() {
+ if [ -z ${PROVISION_ID+x} ]; then
+ echo "No cluster exists!"
+ exit 1
+ fi
docker exec ${NODES[0]} bash -c "umount /etc/hosts; rm -f /etc/hosts"
if [ -n "$PROVISION_ID" ]; then
docker-compose -p $PROVISION_ID stop