I'm trying to copy data from 1 s3 object storage to another object storage (both on prem) using hadoop cli.
Both storage have different endpoint, access keys and secret keys.
hdfs dfs -Dfs.s3a.endpoint=xxxx:xxxx -Dfs.s3a.access.key=xxxxx -Dfs.s3a.secret.key=xxxx -ls s3a://bucket-name/
this works for both storage.
But i'm not able to copy from 1 to another as i have no clue how to enter multiple values for access keys/secret keys/endpoints in a single command.
I can do this using a java code, but want to do it through commandline.
Thanks.