0

Is there a way to copy data from Gateway node in Cluster1 directly to HDFS of Cluster 2 when in same network.Currently I am doing scp to gateway node of Cluster 2 and uploading data to HDFS.

Thanks,

darkknight444
  • 546
  • 8
  • 21

1 Answers1

1

You could try something like this:

hadoop fs -put [local_file] hdfs://[namenode2]:[namenode2_port]/[path]

Assuming:

  • [local_file] is the file in gateway node in cluster 1
  • [namenode2] is the namenode of cluster 2
  • [namenode2_port] is the namenode port of cluster 2
  • [path] is the path in hdfs to put the file
Ashrith
  • 6,745
  • 2
  • 29
  • 36