I am getting an error while creating directories in hadoop
2 Answer(s)
Abhijit-Dezyre Support
Hi Danny,
Please use the following command to check the file is available or not.
- hadoop fs -ls -d /home/ec2-user/sam/
Due to restriction. You can only create folder under /user/ec2-user/.
Hope this helps.
Thanks
Jan 04 2016 05:18 AM
Please use the following command to check the file is available or not.
- hadoop fs -ls -d /home/ec2-user/sam/
Due to restriction. You can only create folder under /user/ec2-user/.
Hope this helps.
Thanks
Danny
i am still getting this same error when i try a -ls or -mkdir. I had previously created this directory during the class sessions.
[ec2-user@ip-172-31-24-142 data]$ hadoop fs -ls -d /home/ec2-user/sam/
Warning: $HADOOP_HOME is deprecated.
/usr/hdp/2.3.2.0-2950//hadoop/bin/hadoop.distro: line 170: exec: : not found
Jan 04 2016 10:08 AM
[ec2-user@ip-172-31-24-142 data]$ hadoop fs -ls -d /home/ec2-user/sam/
Warning: $HADOOP_HOME is deprecated.
/usr/hdp/2.3.2.0-2950//hadoop/bin/hadoop.distro: line 170: exec: : not found