본문 바로가기

Study/Bigdata

[hadoop] ERROR namenode.NameNode: java.io.IOException: Cannot create directory /data/name/current

11/11/23 22:45:05 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = server01/블라블라
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 0.20.203.0
STARTUP_MSG:   build = http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-203 -r 1099333; compiled by 'oom' on Wed May  4 07:57:50 PDT 2011
************************************************************/
11/11/23 22:45:06 INFO util.GSet: VM type       = 32-bit
11/11/23 22:45:06 INFO util.GSet: 2% max memory = 19.33375 MB
11/11/23 22:45:06 INFO util.GSet: capacity      = 2^22 = 4194304 entries
11/11/23 22:45:06 INFO util.GSet: recommended=4194304, actual=4194304
11/11/23 22:45:06 INFO namenode.FSNamesystem: fsOwner=hadoop
11/11/23 22:45:06 INFO namenode.FSNamesystem: supergroup=supergroup
11/11/23 22:45:06 INFO namenode.FSNamesystem: isPermissionEnabled=true
11/11/23 22:45:06 INFO namenode.FSNamesystem: dfs.block.invalidate.limit=100
11/11/23 22:45:06 INFO namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
11/11/23 22:45:06 INFO namenode.NameNode: Caching file names occuring more than 10 times
11/11/23 22:45:06 ERROR namenode.NameNode: java.io.IOException: Cannot create directory /data/name/current
    at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:297)
    at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1219)
    at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1238)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1038)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1145)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1162)

11/11/23 22:45:06 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at server01/블라블라
************************************************************/


구글 신께서는 정말 모르시는것이 없는걸까요?
solution : http://askubuntu.com/questions/35551/error-when-formatting-the-hadoop-filesystem

sudo ./hadoop namenode -format