hadoop fs permission denied

Ads

 
 

Share on Google+Share on Google+

Java Coder
hadoop fs permission denied
1 Answer(s)      14 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
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
Advertisements
Hadoop mapreduce
Hadoop mapreduce  How to read the Docx file using mapreduce method in hadoop
change file permission in php
change file permission in php  How to change file permission in PHP
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
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
java get file permission
java get file permission  How to check the get file permission in Java
Hadoop Mapreduce Java
Hadoop Mapreduce Java   Do you Guys have/provide Hadoop Mapreduce java examples
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
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
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
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
Hadoop Data Analytics - Hadoop as a Big Data Analytics Platform
Hadoop Data Analytics - Hadoop as a Big Data Analytics Platform  Hi, How Hadoop can be used a Big Data Analytics platform? What are the tools available for Big Data Analytics which can be used with Hadoop? Thanks   
Using Splunk with Hadoop
How to use Splunk with Hadoop? Hadoop is one of the most used and very... the various ways you can integrate and use Splunk with Hadoop. Splunk Big Data platform recently announced the Hunk (Hadoop and Splunk) to make the system work
Hadoop Interview Questions and Answers
Top Hadoop Interview Questions and Answers Hadoop is Big Data platform begin... with unlimited capabilities, many applications (Hadoop ecosystem applications) comes with Hadoop which makes it very robust and scalable platform for Big Data
Big Data and Hadoop Training in Delhi
Learn Big Data and Hadoop at Rose India in Delhi Get Big Data Hadoop Training... meant for it. Hadoop, a tool which is an open source java-based programme, deals with Big Data in an expert way. The History and Future: Hadoop was originally
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
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)  HI, I am getting following error in the outlook while sending the email: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) What to solve this? Thanks
Spring Framework for Apache Hadoop 2.3.0 GA released
The version of Spring for Apache Hadoop 2.3.0 is released on 22nd December... for Hadoop helps the developers to quickly develop and deploy Hadoop based applications. Spring for Hadoop provides the APIs for using HDFS, MapReduce, Pig
What are the prerequisites to learn Big Data and Hadoop?
Big Data and Hadoop - Complete information about the prerequisites to learn Big Data and Hadoop In this guide we will tell you the necessary prerequisites for learning the Big Data and Hadoop technologies. You will be able to select
I am good in programming. Can I make career in Big Data and Hadoop?
I am good in programming. Can I make career in Big Data and Hadoop?  ... of enterprise applications. Can I make career in Big Data and Hadoop? Thanks   ... Big Data and Hadoop programming. Since you have prior programming experience
Big Data and Hadoop Training - Online and class room
Big Data and Hadoop online training for Java Programmer Yes, you have reached at right place to learn Big Data and Hadoop in quickest... developer on Big Data and Hadoop ecosystem so that they can get new challenging
What is HBase?
Hadoop project. Like Big Table, HBase can hold large volumes of data, a lot... runs on the Hadoop Distributed File System (HDFS) and also supports Hadoop's Map
5 Invincible Reasons to use Spark for Big Data Analytics?
until Spark came in a big way, Hadoop was the most dominant engine for big data processing. In many respects Hadoop excelled. First of all, Hadoop Distributed... technology except a few negative aspects. Enterprises using Hadoop and heavily
Java Thread checkAccess
permission of thread modification by using checkAccess () method. Thread checkAccess() : Thread class provides you to check the permission of thread modification... thread has permission to modify the thread. Throws : It throws SecurityException
How to check a file is read-able or not in java
Description: This example demonstrate how to check a file have read permission or not at a specified path.  The method canRead() of the File class check for its read property of a file. As in the file path we see '\'
How to check a file is write-able or not in java
Description: This example demonstrate how to check a file have write permission or not at a specified path.  The method canWrite() of the File class check for its write property of a file. As in the file path we see
core java - Java Interview Questions
[ expected duplicate methods Permission denied already defined loss