I'm currently trying to hdfs dfs -put /mnt/dock_dir/test1.txt /user/root/data
but get put: '/mnt/dock_dir/test1.txt': No such file or directory
, and that file does exist, I just can't see it when I'm in the hadoop terminal. In fact, (csce438 is the user) I can't see my entire /home/csce438 directory in the hadoop bash terminal, home is just empty (when just using cd and ls to navigate). I can find all the files in a normal terminal and file explorer. Some more details is that this is a school project and on an ubuntu VM, and as it's a school project, I'm pretty inexperienced with the environment.
Here's a list of what I'm doing.
- Installed Docker Engine using binaries, specifically docker-23.0.0.tgz. And I did run
sudo cp docker/* /usr/bin/
if that means anything. - Pulling Sequenceiq/hadoop-docker image
- run from /home/csce438
$ docker run -it ==volume ./dock_dir:/mnt/dock_dir sequenceiq/hadoop-docker:2.7.0 /etc/bootstrap.sh -bash
(this successfully opens the hadoop terminal). $ export HADOOP_CLASSPATH=/usr/java/default/lib/tools.jar
$ export PATH=$PATH:/usr/local/hadoop/bin
$ hdfs dfs -mkdir /user/root/data
-this does work, the directory exists.$ hdfs dfs -put /mnt/dock_dir/test1.txt /user/root/data
- again, where I get the error