集群节点间数据分发dispath.sh

#!/usr/bin/env bash

if [ $# -ne 1 ]; then
    echo "Usage: dispath.sh filename"
    exit 1
fi

cur_dir=$(cd "$(dirname "$1")"; pwd) 
for dst in {1..50}
do

    scp -r $1 emr-worker-$dst:$cur_dir
done
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页