You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by "S. Zhou" <my...@yahoo.com> on 2013/10/28 20:08:27 UTC

set file permission on mapreduce outputs

I have a MR job (which only has mapper) and the file permission of the output files is "rwx------". I want it to be "rwxr-xr-x". How can I set it  up in job config?  Thanks

Senqiang

Re: set file permission on mapreduce outputs

Posted by rtejac <rt...@gmail.com>.
Hello, 

You can set dfs.umask = 022.

On Oct 28, 2013, at 12:08 PM, "S. Zhou" <my...@yahoo.com> wrote:

> I have a MR job (which only has mapper) and the file permission of the output files is "rwx------". I want it to be "rwxr-xr-x". How can I set it  up in job config?  Thanks
> 
> Senqiang
> 


Re: set file permission on mapreduce outputs

Posted by rtejac <rt...@gmail.com>.
Hello, 

You can set dfs.umask = 022.

On Oct 28, 2013, at 12:08 PM, "S. Zhou" <my...@yahoo.com> wrote:

> I have a MR job (which only has mapper) and the file permission of the output files is "rwx------". I want it to be "rwxr-xr-x". How can I set it  up in job config?  Thanks
> 
> Senqiang
> 


Re: set file permission on mapreduce outputs

Posted by rtejac <rt...@gmail.com>.
Hello, 

You can set dfs.umask = 022.

On Oct 28, 2013, at 12:08 PM, "S. Zhou" <my...@yahoo.com> wrote:

> I have a MR job (which only has mapper) and the file permission of the output files is "rwx------". I want it to be "rwxr-xr-x". How can I set it  up in job config?  Thanks
> 
> Senqiang
> 


Re: set file permission on mapreduce outputs

Posted by rtejac <rt...@gmail.com>.
Hello, 

You can set dfs.umask = 022.

On Oct 28, 2013, at 12:08 PM, "S. Zhou" <my...@yahoo.com> wrote:

> I have a MR job (which only has mapper) and the file permission of the output files is "rwx------". I want it to be "rwxr-xr-x". How can I set it  up in job config?  Thanks
> 
> Senqiang
>