To turn the safe mode off manually, you can run the following command:
hadoop dfsadmin -safemode leave Hope this helps. On Fri, Nov 16, 2012 at 7:21 PM, Li Li <[email protected]> wrote: > hi all, > I am trying to set up a hadoop cluster. But when I use start-all.sh > to start it. it throws exception: > 2012-11-17 10:40:21,662 ERROR > org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException > as:work cause:org.apache.hadoop.hdfs.server.namenode.SafeModeException: > Cannot delete /home/work/lili/mapred/system. Name node is in safe mode. > The ratio of reported blocks 1.0000 has reached the threshold 0.9990. Safe > mode will be turned off automatically in 27 seconds. > 2012-11-17 10:40:21,663 INFO org.apache.hadoop.ipc.Server: IPC Server > handler 5 on 9000, call delete(/home/work/lili/mapred/system, true) from > 10.81.33.22:20183: error: > org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete > /home/work/lili/mapred/system. Name node is in safe mode. > The ratio of reported blocks 1.0000 has reached the threshold 0.9990. Safe > mode will be turned off automatically in 27 seconds. > org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete > /home/work/lili/mapred/system. Name node is in safe mode. > The ratio of reported blocks 1.0000 has reached the threshold 0.9990. Safe > mode will be turned off automatically in 27 seconds. > at > org.apache.hadoop.hdfs.server.namenode.FSNamesystem.deleteInternal(FSNamesystem.java:1994) > at > org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:1974) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.delete(NameNode.java:792) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384) >
