aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraaz Sareshwala <fsareshwala@quantcast.com>2016-02-01 17:38:17 -0800
committerOlaf Flebbe <of@ofleb.be>2016-02-02 13:50:05 +0100
commit6b386d2383676735eba1c2059b8069da42092e03 (patch)
tree0bb03b3e2c194cbfbae8f18a589ccb5cb24ff22b
parentb62020897b133e72c6c7940b9499e15d904664eb (diff)
downloadbigtop-odpi-6b386d2383676735eba1c2059b8069da42092e03.tar.gz
BIGTOP-2303. Fix the indentation in docker-hadoop.sh
-rwxr-xr-xbigtop-deploy/vm/vagrant-puppet-docker/docker-hadoop.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/bigtop-deploy/vm/vagrant-puppet-docker/docker-hadoop.sh b/bigtop-deploy/vm/vagrant-puppet-docker/docker-hadoop.sh
index 4b7a6b92..a5d2286e 100755
--- a/bigtop-deploy/vm/vagrant-puppet-docker/docker-hadoop.sh
+++ b/bigtop-deploy/vm/vagrant-puppet-docker/docker-hadoop.sh
@@ -33,7 +33,7 @@ create() {
vagrant up --no-parallel
if [ $? -ne 0 ]; then
echo "Docker container(s) startup failed!";
- exit 1;
+ exit 1;
fi
nodes=(`vagrant status |grep bigtop |awk '{print $1}'`)
hadoop_head_node=(`echo "hostname -f" |vagrant ssh ${nodes[0]} |tail -n 1`)
@@ -88,7 +88,7 @@ get-yaml-config() {
RUBY_EXE=ruby
which ruby > /dev/null 2>&1
if [ $? -ne 0 ]; then
- # use vagrant embedded ruby on Windows
+ # use vagrant embedded ruby on Windows
RUBY_EXE=$(dirname $(which vagrant))/../embedded/bin/ruby
fi
RUBY_SCRIPT="data = YAML::load(STDIN.read); puts data['$1'];"
@@ -106,17 +106,17 @@ while [ $# -gt 0 ]; do
case "$1" in
-c|--create)
if [ $# -lt 2 ]; then
- echo "Create requires a number" 1>&2
- usage
+ echo "Create requires a number" 1>&2
+ usage
fi
create $2
shift 2;;
-C|--conf)
if [ $# -lt 2 ]; then
- echo "Alternative config file for vagrantconfig.yaml" 1>&2
- usage
+ echo "Alternative config file for vagrantconfig.yaml" 1>&2
+ usage
fi
- vagrantyamlconf=$2
+ vagrantyamlconf=$2
shift 2;;
-p|--provision)
provision