hadoop fs permission denied

Ads

 
 

Share on Google+Share on Google+

Java Coder
hadoop fs permission denied
1 Answer(s)      4 months and 12 days ago
Posted in : Big Data

Hi,

I am trying to make a directory in HDFS with following command:

hadoop fs -mkdir /test

But its throwing error: hadoop fs permission denied

[email protected]:/home/deepak# hadoop fs -mkdir /test
mkdir: Permission denied: user=root, access=WRITE, inode="/test":hdfs:hdfs:drwxr-xr-x

How to resolve this error?

Thanks

Ads
View Answers

May 11, 2017 at 10:47 PM


Hi,

This error is coming because you have not logged in as bdfs user. Issue following command on console:

su hdfs

After this run the command:

hadoop fs -mkdir /test

And now you should be able to create the directory.

Check more tutorials at Big Data tutorials, technologies, questions and answers.

Thanks


Ads









Related Tutorials/Questions & Answers:
hadoop fs permission denied
hadoop fs permission denied  Hi, I am trying to make a directory in HDFS with following command: hadoop fs -mkdir /test But its throwing error: hadoop fs permission denied [email protected]:/home/deepak# hadoop fs -mkdir /test
Hadoop upload file to HDFS permission denied
Hadoop upload file to HDFS permission denied  Hi, I am trying to upload a file on Hadoop HDFS with the command: hadoop fs -put test.txt /mydir/ But its throwing following error: mkdir: Permission denied: user=root, access
Advertisements
Hadoop command not found
Hadoop command not found  Hi, I am trying to put file with the command: hadoop fs -put test.txt /test/ But its saying hadoop command not found... not set hadoop path in the system path. Usually hadoop is present in: /usr/local
How to upload and download file in hadoop?
: hadoop fs -put /<local machime path/filename> /<hdfs path/>... the file: hadoop fs -get /<hdfs path> /<local machime path>...How to upload and download file in hadoop?  Hi, I am trying to learn
Version of com.ecfront>fs dependency
List of Version of com.ecfront>fs dependency
change file permission in php
change file permission in php  How to change file permission in PHP
Access denied for user 'abc'@'xxxx' (using password: YES)
Access denied for user 'abc'@'xxxx' (using password: YES)  I have... achieve this one.. ? Can i give any permission to connect with internet like in Android-internet connection permission like that ?.... Please let me out from
How to list files in hadoop?
in a directory you can use the following command: hadoop fs -ls / Above command lists all...$ hadoop fs -ls / Found 11 items drwxrwxrwx - yarn hadoop 0 2017-05-13...How to list files in hadoop?  Hi, I want to list the files from
Hadoop mapreduce
Hadoop mapreduce  How to read the Docx file using mapreduce method in hadoop
Hadoop shell commands
. Following command is used to create directory in HDFS: hadoop fs -mkdir <.... Example: hadoop fs -mkdir /test hadoop fs -mkdir /test/usr hadoop fs -mkdir... the content of a directory: hadoop fs -ls <args> Example: To list
java get file permission
java get file permission  How to check the get file permission in Java
Mysql Permission
Mysql Permission       Mysql Permission allows the user to connect to the database, Mysql... the permission to connect. All user /host/password combination are listed in this table
Maven Dependency fs >> 0.1
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.1 in your project
Maven Dependency fs >> 0.2
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.2 in your project
Maven Dependency fs >> 0.2.4
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.2.4 in your project
Maven Dependency fs >> 0.3
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.3 in your project
Maven Dependency fs >> 0.5
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.5 in your project
Maven Dependency fs >> 0.6
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.6 in your project
Maven Dependency fs >> 0.7
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.7 in your project
Maven Dependency fs >> 0.8
You should include the dependency code given in this page to add Maven Dependency of com.ecfront >> fs version0.8 in your project
Version of com.devfigas>marshmallow-permission dependency
List of Version of com.devfigas>marshmallow-permission dependency
Version of cn.featherfly >featherfly-permission dependency
List of Version of cn.featherfly >featherfly-permission dependency
Hadoop for Big Data
Hadoop for Big Data  Hi, How Hadoop is important in Big Data? Why developers are learning Hadoop first and other technologies after that? Thanks
Hadoop Mapreduce Java
Hadoop Mapreduce Java   Do you Guys have/provide Hadoop Mapreduce java examples
Big Data tools - Hadoop - Why Hadoop as Big Data tool?
Big Data tools - Hadoop - Why Hadoop as Big Data tool?  Hi, How we can say that Hadoop is a Big Data Tool? What are the benefits of Hadoop in Big Data Environment? Thanks
What skills are required to be a Hadoop developer?
What skills are required to be a Hadoop developer?  Hi, How to become a good Hadoop Developer? What skills are required to be a Hadoop developer? Thanks
What are job role of Hadoop Developer?
What are job role of Hadoop Developer?  Hi, I am planning to get the the job in Hadoop Development as Hadoop Developer. What are the roles of a Hadoop Developer? Thanks
Spring Security Customized Access Denied Page
Spring Security Customized Access Denied Page In this section, you will learn about Customized Access Denied Page in Spring Security. Access denied page...;. In this section, we will customize the access denied page. Some helpful example
Big Data Analytics with Hadoop
Big Data Analytics with Hadoop  Hi, How Big Data Analysis is done? How one can use Hadoop for Big Data Analytics? Thanks
Maven Dependency featherfly-permission >> 0.1.4
You should include the dependency code given in this page to add Maven Dependency of cn.featherfly >> featherfly-permission version0.1.4 in your project
Maven Dependency featherfly-permission >> 0.1.10
You should include the dependency code given in this page to add Maven Dependency of cn.featherfly >> featherfly-permission version0.1.10 in your project

Ads

 
Advertisement null

Ads