Write the following script transferFromCluster1ToCluster2.sh
for i in$(cat$1);do echo$i;
curl -k--location-trusted-u'login:passwd'-X GET "https://web_hdfs_of_source_cluster:8443/gateway/default/webhdfs/v1${i}?op=OPEN" | curl -v-k-T - --location-trusted-u'login:passwd'-X PUT "https://web_hdfs_of_target_cluster:8443/gateway/default/webhdfs/v1${i}?op=CREATE&overwrite=true";done;