Exception in thread "main" : oteException(): Cannot c reate directory /tmp/hive/root/9db3bb80-5fc4-48ba-8b97-59c130a91fbf. Name node i s in safe mode.
The reported blocks 170 needs additional 3 blocks to reach the threshold 0.9990 of total blocks 173.
The number of live datanodes 2 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
at Mode(:1327)
at (FSNamesyst :3895)
at (NameN :984)
at (:622)
at $Cl ientNamenodeProtocol$()
at $Server$ l(:616)
at $(:982)
at $Handler$(:2049)
at $Handler$(:2045)
at (Native Method)
at (:422)
at (UserGroupInforma :1698)
at $(:2043)
at ( a:522)
at (:677)
at (:621)
at .invoke0(Native Method)
at (NativeMethodAccessorImpl. java:62)
at (DelegatingMethodAcces :43)
at (:498)
at (:221)
at (:136)
Caused by: ( ): Cannot create directory /tmp/hive/root/9db3bb80-5fc4 -48ba-8b97-59c130a91fbf. Name node is in safe mode.
The reported blocks 170 needs additional 3 blocks to reach the threshold 0.9990 of total blocks 173.
The number of live datanodes 2 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
at Mode(:1327)
at (FSNamesyst :3895)
at (NameN :984)
at (:622)
at $Cl ientNamenodeProtocol$()
at $Server$ l(:616)
at $(:982)
at $Handler$(:2049)
at $Handler$(:2045)
at (Native Method)
at (:422)
at (UserGroupInforma :1698)
at $(:2043)
at (:1475)
at (:1412)
at $(ProtobufRpcEng :229)
at .$(Unknown Source)
at . mkdirs(:558)
at .invoke0(Native Method)
at (NativeMethodAccessorImpl. java:62)
at (DelegatingMethodAcces :43)
at (:498)
at (RetryI :191)
at (RetryInvocat :102)
at .$(Unknown Source)
at (:3000)
at (:2970)
at $(DistributedFil :1047)
at $(DistributedFil :1043)
at (FileSystemLinkRes :81)
at (Distribut :1043)
at (DistributedFileSy :1036)
at (SessionStat :639)
at (Sess :574)
at ( a:508)
... 8 more
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
解决方法:
- 退出安全模式
hadoop dfsadmin -safemode leave