Open alexeytochin opened 6 years ago
Hi @Lehis, you need to mount your local folder to docker container. For example:
docker run -v /local/folder/to/mount:/data --network mynetwork --env-file hadoop.env bde2020/hadoop-base:tag hdfs dfs -copyFromLocal /data/myfile /
If you want to use docker exec, then you first need to copy your README.md into your container:
docker cp README.md namenode:/data/README.md
docker exec -it namenode hadoop fs -put README.md /tmp/README.md
I tried docker exec -it namenode hadoop fs -put README.md /tmp/README.md and got put: `README.md': No such file or directory