#!/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

posted on   流浪在伯纳乌  阅读(333)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示