Unverified Commit 67e520c4 authored by Chao Ma's avatar Chao Ma Committed by GitHub
Browse files

[Distributed] Change rsync to scp of copy_files.py (#2197)

* update

* update
parent 9488bace
...@@ -9,9 +9,9 @@ import logging ...@@ -9,9 +9,9 @@ import logging
import json import json
import copy import copy
def copy_file(file_name, ip, workspace): def copy_file(file_name, ip, workspace, param=''):
print('copy {} to {}'.format(file_name, ip + ':' + workspace + '/')) print('copy {} to {}'.format(file_name, ip + ':' + workspace + '/'))
cmd = 'rsync -e \"ssh -o StrictHostKeyChecking=no\" -arvc ' + file_name + ' ' + ip + ':' + workspace + '/' cmd = 'scp ' + param + ' ' + file_name + ' ' + ip + ':' + workspace + '/'
subprocess.check_call(cmd, shell = True) subprocess.check_call(cmd, shell = True)
def exec_cmd(ip, cmd): def exec_cmd(ip, cmd):
...@@ -92,7 +92,7 @@ def main(): ...@@ -92,7 +92,7 @@ def main():
copy_file(part_files['edge_feats'], ip, remote_path) copy_file(part_files['edge_feats'], ip, remote_path)
copy_file(part_files['part_graph'], ip, remote_path) copy_file(part_files['part_graph'], ip, remote_path)
# copy script folder # copy script folder
copy_file(args.script_folder, ip, args.workspace) copy_file(args.script_folder, ip, args.workspace, '-r')
def signal_handler(signal, frame): def signal_handler(signal, frame):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment