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 Ossi <lo...@gmail.com> on 2011/09/14 12:34:50 UTC
Setting permissions on startup, during safe mode
hi,
every time after starting our hadoop cluster (using Cloudera's) this message
appears:
2011-09-13 04:35:05,207 INFO org.apache.hadoop.hdfs.StateChange: STATE* Safe
mode extension entered.
The reported blocks 8995 has reached the threshold 0.9990 of total blocks
9005. Safe mode will be turned off automatically in 29 seconds.
2011-09-13 04:35:05,508 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 6 on 8020, call setPermission(/mapred/system, rwx------) from
10.11.20.11:41965: error:
org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot set
permission for /mapred/system. Name node is in safe mode.
Why does it try to change permissions which are already ok:
hdfs@hq-priv-01:~/logs > hadoop fs -ls /mapred/
Found 1 items
drwx------ - hdfs supergroup 0 2011-09-13 07:15 /mapred/system
Regards,
Ossi
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.
Re: Setting permissions on startup, during safe mode
Posted by Afshin <af...@gmail.com>.
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