Support Questions

Find answers, ask questions, and share your expertise

how do I copy a file from aws ec2 instance to dockerized HDP2.5 ( installed in the same box)

avatar
Expert Contributor
 
1 ACCEPTED SOLUTION

avatar
Expert Contributor

@melek Thank you , I got the solutions from the learning ropes of Horton works.

View solution in original post

2 REPLIES 2

avatar
Contributor

Not clear what you are doing. Please define your problem with more details:

  • What is your environment? How did you start the containers?
  • What would you like to achieve?
  • What have you tried so far?

To copy any file from the host machine to a docker container you can use docker cp command or use docker volumes. If you would like to copy from the host machine to hdfs the easiest way to mount a volume to the docker container and use hdfs dfs -copyFromLocal from inside the containers as the hdfs configuration most probably already there...

avatar
Expert Contributor

@melek Thank you , I got the solutions from the learning ropes of Horton works.