0
votes

I am not able to configure hadoop for stand alone operation. When i am doing cp conf/*.xml input, i am getting these errors: cp: cannot create regular file input/capacity-scheduler.xml': Permission denied cp: cannot create regular fileinput/core-site.xml': Permission denied cp: cannot create regular file input/fair-scheduler.xml': Permission denied cp: cannot create regular fileinput/hadoop-policy.xml': Permission denied cp: cannot create regular file input/hdfs-site.xml': Permission denied cp: cannot create regular fileinput/mapred-queue-acls.xml': Permission denied cp: cannot create regular file `input/mapred-site.xml': Permission denied

And after that when i am doing bin/hadoop jar hadoop-examples-*.jar grep input output 'dfs[a-z.]+',i am getting these errors:

/cygdrive/d/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 55: $'\r': command not found Error: JAVA_HOME is not set. I have edited the env.sh file and have set the JAVA_HOME.

Can anyone suggest me something?

1
Waiting for the answer.user861938

1 Answers

0
votes

Try running those copy commands as the root user (administrator). It's probably a permissions issue where your user account doesn't have the privileges to write things in that directory.

You can do this in a lot of Linux distributions by using sudo

E.g:

sudo cp conf/*.xml input