Command to store File on HDFS
file, hadoop, hdfs, linux
Solution
If no path is provided, hadoop will try to copy the file in your hdfs home directory. In other words, if you're logged as utrecht, it will try to copy ubuntu-14.04-desktop-amd64.iso to `/user/utrecht`.
However, this folder doesn't exist from scratch (you can normally check the dfs via a web browser). To make your command work, you have two choices :
- copy it elsewhere (`/` works, but putting everything there may lead to complications in the future)
- create the directory you want with `hdfs dfs -mkdir /yourFolderPath`
Problem
Introduction A Hadoop NameNode and three DataNodes have been installed and are running. The next step is to provide a File to HDFS. The following commands have been executed: ``` hadoop fs -copyFromLocal ubuntu-14.04-desktop-amd64.iso copyFromLocal: `.': No such file or directory ``` and ``` hadoop fs -put ubuntu-14.04-desktop-amd64.iso put: `.': No such file or directory ``` without succes. Question Which command needs to be issued in order to store a file on HDFS?