I have an AWS EMR setup. I am SSH to node master. I wanted to copy the file to hdfs. This is a small line of code in my program that does this:
os.system('/home/hadoop/bin/hdfs dfs -put %s PATH_to_HADOOP' % tmp_output)
I want to enter the path to the hdfs file system.
I do
[ec2-user@ip-172-31-0-185 input]$ /home/hadoop/bin/hdfs dfs -ls /
Found 2 items
drwxr-xr-x - hadoop supergroup 0 2014-04-14 22:21 /hbase
drwxrwx--- - hadoop supergroup 0 2014-04-14 22:19 /tmp
I'm trying to
[ec2-user@ip-172-31-0-185 input]$ /home/hadoop/bin/hdfs dfs -mkdir /tmp/stockmarkets
mkdir: Permission denied: user=ec2-user, access=EXECUTE, inode="/tmp":hadoop:supergroup:drwxrwx---
So, to add the ec2 user to use hadoop, I followed these instructions:
http://cloudcelebrity.wordpress.com/2013/06/05/handling-permission-denied-error-on-hdfs/
But after I write (substitute ubuntu them for ec2-user)
sudo adduser ec2-user hadoop
instead of receiving the add message, I get:
Usage: useradd [options] LOGIN
Options:
-b,
new account
-c,
-d,
-D,
-e,
-f,
-g,
account
-G,
account
-h,
-k,
-K,
-l,
faillog databases
-m,
-M,
-N,
the user
-o,
(non-unique) UID
-p,
-r,
-s,
-u,
-U,
-Z,
So everyone is confused and screwed .. Please HELP> ....