linux - How to allow the root user to write files into HDFS -


i have installed hadoop on cent os 7. daemon service written in python trying make directory in hdfs , getting below permission error.

mkdir: permission denied: user=root, access=write, inode="/rep_data/store/data/":hadoop:supergroup:drwxr-xr-x 

looks service running under root account. know how give permission root user make directory , write files.

if trying create directory under hdfs root i.e /, may face type of issue. can create directories in home, without issues

to create directory in root, execute command follows

sudo hdfs hdfs dfs -mkdir /directory/name

to create directory in hdfs home execute below command

hdfs dfs -mkdir /user/user_home/directory/name


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -