mkdir cannot create directory var run hadoop Permission denied

0 votes

Hi Guys,

I am trying to start Hadoop daemons, but it is showing me the below error.

root@localhost:/home/hadoop$ start-all.sh
mkdir: cannot create directory `/var/run/hadoop': Permission denied
Oct 14, 2020 in Big Data Hadoop by akhtar
• 38,230 points
2,803 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to set the path of your directory in the hdfs-site.xml file. So that the node can contribute the storage with the help of this folder.

<property>
  <name>dfs.name.dir</name>
   <value>/path/to/hdfs/dir</value>
</property>
answered Oct 14, 2020 by MD
• 95,440 points

Related Questions In Big Data Hadoop

0 votes
1 answer

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

Make the following changes to the hadoop-env.sh ...READ MORE

answered Dec 6, 2018 in Big Data Hadoop by Omkar
• 69,210 points
2,739 views
0 votes
1 answer
0 votes
1 answer

Hadoop hdfs "permission denied" error when I try to make new directory

This is because you dont have enough ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 69,210 points
14,875 views
0 votes
1 answer
0 votes
1 answer

What is the command to find the free space in HDFS?

You can use dfsadmin which runs a ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 13,490 points
1,871 views
0 votes
1 answer

How to find the used cache in HDFS

hdfs dfsadmin -report This command tells fs ...READ MORE

answered May 4, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,056 views
+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
10,600 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
2,207 views
0 votes
1 answer

How to run Hadoop in Docker containers?

Hi, You can run Hadoop in Docker container. Follow ...READ MORE

answered Jan 24, 2020 in Big Data Hadoop by MD
• 95,440 points
1,812 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP