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
• 26,720 points
1,550 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 6, 2018 by Omkar
• 69,170 points

Related Questions In Big Data Hadoop

0 votes
1 answer

mkdir: cannot create directory `/var/run/hadoop': Permission denied.

Hi@akhtar, You need to set the path of ...READ MORE

answered Oct 14, 2020 in Big Data Hadoop by MD
• 95,300 points
1,029 views
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, 2019 in Big Data Hadoop by Lokesh Singh
2,163 views
0 votes
1 answer
0 votes
1 answer
+1 vote
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
• 11,380 points
7,893 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
• 11,380 points
1,327 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
62,516 views
–1 vote
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,390 points
2,992 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
1,153 views