How to move dataset into local HortonWorks HDFS?

134 Views Asked by At

I'm having trouble importing datasets u.data and u.item located in Downloads into HortonWorks Sandbox 2.1. I looked at No such file or directory error when using Hadoop fs --copyFromLocal command and tried the solution:

sudo -u hdfs hadoop fs -mkdir /user/Downloads
sudo -u hdfs hadoop fs -chown Downloads:Downloads /user/Downloads

which did not produce error, although I'm not sure if it did anything. Then

hadoop fs -copyFromLocal /Downloads/u.data

led to No such file or directory error. How can this command be adjusted to import the datasets into the HortonWorks HDFS?

I'm logged in Jupyter Notebook through the IP address given by the local sandbox. But the user name is not shown and I don't think it is the default 'root'. Jupyter Notebook folders

0

There are 0 best solutions below