I cannot run my first Program



0
I connect to AWS using putty and trying to run my first assignment. Anytime I tried to create a directory, i get the error : No such file or directory as shown on the screenshot below.


4 Answer(s)


0

Hi Patrice ;

There are two directories . You should be clear where you are doing that.

/home/cloudera - Local Directory

Here we need to use ls command directly

/user/cloudera - HDFS Directory

HDFS fs -ls

Hope this will help you.


0

Hi Patrice,
On AWS, you are only allowed to create directory under /user/ec2-user/. This is hdfs directory.
If you try another directories, you will get error.
And PWD is command to show current local directory.
Hope this helps.
Thanks.

0

Hi Dezyre Support,

I wonder if you even bother to check my screenshot. I shared the screenshot so you can see what i am doing. I used PWD to show you my current directory. And then I created a directory using hadoop fs -mkdir NewDir and it worked but when i tried to copy file in that directory I was not able. Please take time to read the post before replying. This is the second times i am asking question here and none of them ever got an answer. I am still facing with AWS. First I was not able to access hadoop from my profile and i have to search online to know that i have to modify my .bashrc. now I have hadoop but i amm still having issue. I will really appreciate your help. Thank you.

0

Hi Patrice,
PWD command is used for show local directory i.e., /home/ec2-user/
You are created folder under hdfs i.e., -hadoop fs -mkdir /home/ec2-user/hdfs_input

One thing about aws hdfs: you are only allowed to create file under /user/ec2-user/
Please create folder as - hadoop fs -mkdir /user/ec2-user/hdfs_input

To check the created directory is available in hdfs or not:
- hadoop fs -ls /user/ec2-user/hdfs_input

We read your question correctly and this is the same answer with more explanation.
Hope this helps.
Thanks.