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 in Big Data Hadoop by akhtar
• 33,370 points
103 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 by MD
• 79,190 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 5, 2018 in Big Data Hadoop by Omkar
• 69,030 points
1,051 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,030 points
7,949 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,450 points
670 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,450 points
754 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
• 10,950 points
6,347 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,950 points
981 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 in Big Data Hadoop by MD
• 79,190 points
487 views