#!/bin/bash
iplist=(
#10.130.2.20
10.130.2.22
10.130.2.40
10.130.2.41
10.130.2.42
10.130.2.44
10.130.2.45)
kill -9 `lsof -i:11000|awk 'NR>1 {print $2}'`
sh ${SPARK_HOME}/sbin/start-thriftserver-withJDBC.sh
for host in ${iplist[*]};
do
ssh -t -p 22 $host "chmod -R 777 /mnt/disk*/spark*/*"
done