You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Afshin <af...@gmail.com> on 2011/11/22 06:34:21 UTC

Re: Setting permissions on startup, during safe mode

I have the same problem. My hadoop version is CDH3U2. I don't know if there has
been a change in data files or not. I just need to set it again in a correct way
but i don't know the way i should set the permissions.
Regards,
   Afshin



Re: Setting permissions on startup, during safe mode

Posted by "Alexander C.H. Lorenz" <wg...@googlemail.com>.
Hi,

to set local permissions (operating system):
chown -R hdfs:hadoop /path/to/hdfs/ && chown -R mapred:hadoop
/path/to/hdfs/mapred

inside of hdfs:
sudo -u hdfs hadoop fs -mkdir /mapred/system
sudo -u hdfs hadoop fs -chown -R mapred /mapred

regards
- alex


On Tue, Nov 22, 2011 at 7:26 AM, Afshin <af...@gmail.com> wrote:

> I read CDH3U2 installation guide and it has a part which guides the way you
> should set the permissions. you should set the owner of mapred directories
> as
> mapred:hadoop so that daemons will be able to set the correct permissions
> on
> startup. but your owner for mapred directory is hdfs.
>
>


-- 
Alexander Lorenz
http://mapredit.blogspot.com

*P **Think of the environment: please don't print this email unless you
really need to.*

Re: Setting permissions on startup, during safe mode

Posted by Afshin <af...@gmail.com>.
I read CDH3U2 installation guide and it has a part which guides the way you
should set the permissions. you should set the owner of mapred directories as
mapred:hadoop so that daemons will be able to set the correct permissions on
startup. but your owner for mapred directory is hdfs.