When I run a Hadoop MapReduce job, all the directories that were generated use ‘rwxr_xr_x’ as the permissions. I would like to change them to ‘rwxrwxrwx’, how to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
hadoop fs -chmod 777 your/directoryto change it after the fact. Or create the directories before you run the job, and set their permissions accordingly. You might also be able to set thedfs.umaskvalue, which will govern the permissions directories are created with.See http://hadoop.apache.org/docs/r0.20.2/hdfs_permissions_guide.html