Start-dfs.sh daemons not starting. localhost: mkdir: cannot create directory `/user': Permission denied

0 votes

I am not able to start the daemons using start-dfs.sh command. I am getting the following error:

start-dfs.sh
Starting namenodes on [localhost]
hduser@localhost's password: 
localhost: mkdir: cannot create directory `/user': Permission denied
localhost: chown: cannot access `/user/user': No such file or directory
localhost: starting namenode, logging to /user/user/hadoop-user-namenode-canberra.out
localhost: /home/user/work/software/cloudera/hadoop-2.0.0-cdh4.0.0/sbin/hadoop-daemon.sh: line 150: /user/user/hadoop-hduser-namenode-canberra.out: No such file or directory
localhost: head: cannot open `/user/user/hadoop-hduser-namenode-canberra.out' for reading: No such file or directory

Dec 5, 2018 in Big Data Hadoop by digger
• 27,630 points
147 views

1 answer to this question.

0 votes

Make the following changes to the hadoop-env.sh file:

export HADOOP_LOG_DIR=/path/to/hadoop/extract/logs/

Now run start-dfs.sh command, it should work fine.

If you are using packages instead, don't use these scripts and instead just do:

service hadoop-hdfs-namenode start
service hadoop-hdfs-datanode start
service hadoop-hdfs-secondarynamenode start
answered Dec 5, 2018 by Omkar
• 67,290 points

Related Questions In Big Data Hadoop

0 votes
2 answers

start-dfs.sh command is not starting Hadoop JobTracker & TaskTracker

On which version of hadoop do you ...READ MORE

answered Jul 24 in Big Data Hadoop by Lokesh Singh
610 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Hadoop: TaskTracker and JobTracker don't start with start-dfs.sh

You must run the start-dfs..sh too. So when ...READ MORE

answered Apr 3, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
137 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,510 points
2,407 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,510 points
246 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
12,237 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
898 views
+2 votes
5 answers

Not able to start hadoop dfs

You can re-install openssh-client and openssh-server: $ sudo ...READ MORE

answered Oct 25, 2018 in Big Data Hadoop by Jino
190 views