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

root@hadoop1:/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

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









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 root@hadoop1:/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
Permission denied: '/opt/airflow/logs/scheduler
Permission denied: '/opt/airflow/logs/scheduler  Hi, I am getting following error while running the airflow: Permission denied: '/opt/airflow/logs/scheduler (adsbygoogle = window.adsbygoogle || []).push({}); How
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
change file permission in php
change file permission in php  How to change file permission in PHP
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
ModuleNotFoundError: No module named 'permission'
ModuleNotFoundError: No module named 'permission'  Hi, My Python... 'permission' How to remove the ModuleNotFoundError: No module named 'permission' error? Thanks   Hi, In your python environment you
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
ModuleNotFoundError: No module named 'fs'
ModuleNotFoundError: No module named 'fs'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs' How to remove the ModuleNotFoundError: No module named 'fs' error
ModuleNotFoundError: No module named 'fs'
ModuleNotFoundError: No module named 'fs'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs' How to remove the ModuleNotFoundError: No module named 'fs' error
java get file permission
java get file permission  How to check the get file permission in Java
Version of com.ecfront>fs dependency
List of Version of com.ecfront>fs dependency
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
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
Version of cn.featherfly >featherfly-permission dependency
List of Version of cn.featherfly >featherfly-permission dependency
Version of com.devfigas>marshmallow-permission dependency
List of Version of com.devfigas>marshmallow-permission dependency
ModuleNotFoundError: No module named 'django-permission'
ModuleNotFoundError: No module named 'django-permission'  Hi, My... named 'django-permission' How to remove the ModuleNotFoundError: No module named 'django-permission' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-permission'
ModuleNotFoundError: No module named 'django-permission'  Hi, My... named 'django-permission' How to remove the ModuleNotFoundError: No module named 'django-permission' error? Thanks   Hi, In your
Hadoop mapreduce
Hadoop mapreduce  How to read the Docx file using mapreduce method in hadoop
Hadoop shell commands
in HDFS:ADS_TO_REPLACE_3 hadoop fs -mkdir <paths> Where <paths>... fs -mkdir /test hadoop fs -mkdir /test/usr hadoop fs -mkdir /test/usr... for listing the content of a directory: hadoop fs -ls <args> Example:ADS
ModuleNotFoundError: No module named 'airflow-fs'
ModuleNotFoundError: No module named 'airflow-fs'  Hi, My Python... 'airflow-fs' How to remove the ModuleNotFoundError: No module named 'airflow-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'dxl-fs'
ModuleNotFoundError: No module named 'dxl-fs'  Hi, My Python...-fs' How to remove the ModuleNotFoundError: No module named 'dxl-fs'... to install padas library. You can install dxl-fs python with following command
ModuleNotFoundError: No module named 'flask-fs'
ModuleNotFoundError: No module named 'flask-fs'  Hi, My Python... 'flask-fs' How to remove the ModuleNotFoundError: No module named 'flask-fs... to install padas library. You can install flask-fs python with following
ModuleNotFoundError: No module named 'fresco-fs'
ModuleNotFoundError: No module named 'fresco-fs'  Hi, My Python... 'fresco-fs' How to remove the ModuleNotFoundError: No module named 'fresco-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'fs-cli'
ModuleNotFoundError: No module named 'fs-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-cli' How to remove the ModuleNotFoundError: No module named 'fs-cli'
ModuleNotFoundError: No module named 'fs-cli'
ModuleNotFoundError: No module named 'fs-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-cli' How to remove the ModuleNotFoundError: No module named 'fs-cli'
ModuleNotFoundError: No module named 'fs-dlk'
ModuleNotFoundError: No module named 'fs-dlk'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-dlk' How to remove the ModuleNotFoundError: No module named 'fs-dlk'
ModuleNotFoundError: No module named 'fs-dlk'
ModuleNotFoundError: No module named 'fs-dlk'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-dlk' How to remove the ModuleNotFoundError: No module named 'fs-dlk'
ModuleNotFoundError: No module named 'fs-dlk'
ModuleNotFoundError: No module named 'fs-dlk'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-dlk' How to remove the ModuleNotFoundError: No module named 'fs-dlk'
ModuleNotFoundError: No module named 'fs_extra'
ModuleNotFoundError: No module named 'fs_extra'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs_extra' How to remove the ModuleNotFoundError: No module named 'fs_extra
ModuleNotFoundError: No module named 'FS-Hopper'
ModuleNotFoundError: No module named 'FS-Hopper'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'FS-Hopper' How to remove the ModuleNotFoundError: No module named 'FS
ModuleNotFoundError: No module named 'fs-sparse'
ModuleNotFoundError: No module named 'fs-sparse'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-sparse' How to remove the ModuleNotFoundError: No module named 'fs
ModuleNotFoundError: No module named 'ITMO-FS'
ModuleNotFoundError: No module named 'ITMO-FS'  Hi, My Python...-FS' How to remove the ModuleNotFoundError: No module named 'ITMO-FS... to install padas library. You can install ITMO-FS python with following command
ModuleNotFoundError: No module named 'ITMO-FS'
ModuleNotFoundError: No module named 'ITMO-FS'  Hi, My Python...-FS' How to remove the ModuleNotFoundError: No module named 'ITMO-FS... to install padas library. You can install ITMO-FS python with following command
ModuleNotFoundError: No module named 'mondo-fs'
ModuleNotFoundError: No module named 'mondo-fs'  Hi, My Python... 'mondo-fs' How to remove the ModuleNotFoundError: No module named 'mondo-fs... to install padas library. You can install mondo-fs python with following
ModuleNotFoundError: No module named 'monzo-fs'
ModuleNotFoundError: No module named 'monzo-fs'  Hi, My Python... 'monzo-fs' How to remove the ModuleNotFoundError: No module named 'monzo-fs... to install padas library. You can install monzo-fs python with following
ModuleNotFoundError: No module named 'remarkable-fs'
ModuleNotFoundError: No module named 'remarkable-fs'  Hi, My... 'remarkable-fs' How to remove the ModuleNotFoundError: No module named 'remarkable-fs' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'search-fs'
ModuleNotFoundError: No module named 'search-fs'  Hi, My Python... 'search-fs' How to remove the ModuleNotFoundError: No module named 'search-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'standardnotes-fs'
ModuleNotFoundError: No module named 'standardnotes-fs'  Hi, My... named 'standardnotes-fs' How to remove the ModuleNotFoundError: No module named 'standardnotes-fs' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'stdout-fs'
ModuleNotFoundError: No module named 'stdout-fs'  Hi, My Python... 'stdout-fs' How to remove the ModuleNotFoundError: No module named 'stdout-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'versioning_fs'
ModuleNotFoundError: No module named 'versioning_fs'  Hi, My... 'versioning_fs' How to remove the ModuleNotFoundError: No module named 'versioning_fs' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'watch-fs'
ModuleNotFoundError: No module named 'watch-fs'  Hi, My Python... 'watch-fs' How to remove the ModuleNotFoundError: No module named 'watch-fs... to install padas library. You can install watch-fs python with following
ModuleNotFoundError: No module named 'airflow-fs'
ModuleNotFoundError: No module named 'airflow-fs'  Hi, My Python... 'airflow-fs' How to remove the ModuleNotFoundError: No module named 'airflow-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'angel_fs'
ModuleNotFoundError: No module named 'angel_fs'  Hi, My Python... 'angel_fs' How to remove the ModuleNotFoundError: No module named 'angel_fs... to install padas library. You can install angel_fs python with following
ModuleNotFoundError: No module named 'djeese-fs'
ModuleNotFoundError: No module named 'djeese-fs'  Hi, My Python... 'djeese-fs' How to remove the ModuleNotFoundError: No module named 'djeese-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'dxl-fs'
ModuleNotFoundError: No module named 'dxl-fs'  Hi, My Python...-fs' How to remove the ModuleNotFoundError: No module named 'dxl-fs'... to install padas library. You can install dxl-fs python with following command
ModuleNotFoundError: No module named 'flask-fs'
ModuleNotFoundError: No module named 'flask-fs'  Hi, My Python... 'flask-fs' How to remove the ModuleNotFoundError: No module named 'flask-fs... to install padas library. You can install flask-fs python with following
ModuleNotFoundError: No module named 'fresco-fs'
ModuleNotFoundError: No module named 'fresco-fs'  Hi, My Python... 'fresco-fs' How to remove the ModuleNotFoundError: No module named 'fresco-fs' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'fs-basespace'
ModuleNotFoundError: No module named 'fs-basespace'  Hi, My Python... 'fs-basespace' How to remove the ModuleNotFoundError: No module named 'fs-basespace' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'fs-cli'
ModuleNotFoundError: No module named 'fs-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'fs-cli' How to remove the ModuleNotFoundError: No module named 'fs-cli'

Ads