반응형
[hadoop@hosts bin]$ /etc/init.d/iptables stop
[hadoop@hosts bin]$ hadoop namenode -format
11/11/23 20:33:37 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = java.net.UnknownHostException: hosts: hosts: 이름 혹은 서비스를 알 수 없습니다
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 20:33:37 INFO util.GSet: VM type = 32-bit
11/11/23 20:33:37 INFO util.GSet: 2% max memory = 19.33375 MB
11/11/23 20:33:37 INFO util.GSet: capacity = 2^22 = 4194304 entries
11/11/23 20:33:37 INFO util.GSet: recommended=4194304, actual=4194304
11/11/23 20:33:37 INFO namenode.FSNamesystem: fsOwner=hadoop
11/11/23 20:33:37 INFO namenode.FSNamesystem: supergroup=supergroup
11/11/23 20:33:37 INFO namenode.FSNamesystem: isPermissionEnabled=true
11/11/23 20:33:37 INFO namenode.FSNamesystem: dfs.block.invalidate.limit=100
11/11/23 20:33:37 INFO namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
11/11/23 20:33:37 INFO namenode.NameNode: Caching file names occuring more than 10 times
11/11/23 20:33:38 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 20:33:38 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at java.net.UnknownHostException: hosts: hosts: 이름 혹은 서비스를 알 수 없습니다
************************************************************/
/etc/hosts 와 hostname을 일치시켜주시면 해결 됩니다1!!
http://gmyoul.tistory.com/entry/HDFS-%EC%84%A4%EC%B9%98%EC%9D%98-%EA%B0%80%EC%9E%A5-%ED%81%B0-%EC%96%B4%EB%A0%A4%EC%9B%80-Bad-connection-to-FS-command-aborted
이곳에서 hosts와 hostname을 일치시켜보라서 했는데,
또다른 문제점이 생겼네요 !! 아무튼 위에문제는 hosts와 hostsname을 일치시킴으로써 해결 가능합니다.
[hadoop@hosts bin]$ hadoop namenode -format
11/11/23 20:33:37 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = java.net.UnknownHostException: hosts: hosts: 이름 혹은 서비스를 알 수 없습니다
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 20:33:37 INFO util.GSet: VM type = 32-bit
11/11/23 20:33:37 INFO util.GSet: 2% max memory = 19.33375 MB
11/11/23 20:33:37 INFO util.GSet: capacity = 2^22 = 4194304 entries
11/11/23 20:33:37 INFO util.GSet: recommended=4194304, actual=4194304
11/11/23 20:33:37 INFO namenode.FSNamesystem: fsOwner=hadoop
11/11/23 20:33:37 INFO namenode.FSNamesystem: supergroup=supergroup
11/11/23 20:33:37 INFO namenode.FSNamesystem: isPermissionEnabled=true
11/11/23 20:33:37 INFO namenode.FSNamesystem: dfs.block.invalidate.limit=100
11/11/23 20:33:37 INFO namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
11/11/23 20:33:37 INFO namenode.NameNode: Caching file names occuring more than 10 times
11/11/23 20:33:38 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 20:33:38 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at java.net.UnknownHostException: hosts: hosts: 이름 혹은 서비스를 알 수 없습니다
************************************************************/
/etc/hosts 와 hostname을 일치시켜주시면 해결 됩니다1!!
http://gmyoul.tistory.com/entry/HDFS-%EC%84%A4%EC%B9%98%EC%9D%98-%EA%B0%80%EC%9E%A5-%ED%81%B0-%EC%96%B4%EB%A0%A4%EC%9B%80-Bad-connection-to-FS-command-aborted
이곳에서 hosts와 hostname을 일치시켜보라서 했는데,
또다른 문제점이 생겼네요 !! 아무튼 위에문제는 hosts와 hostsname을 일치시킴으로써 해결 가능합니다.
반응형
'Study > Bigdata' 카테고리의 다른 글
하둡 hadoop && ext3, ext4 , XFS (0) | 2012.01.26 |
---|---|
hadoop port (0) | 2012.01.09 |
[hadoop] ERROR namenode.NameNode: java.io.IOException: Cannot create directory /data/name/current (0) | 2011.11.23 |
RSA 인증으로 ssh 접속 안될때. (0) | 2011.11.23 |
hadoop ssh 포트 변경 (0) | 2011.11.23 |
ssh-copy-id ssh를 다른 포트를 사용할때(22번 포트가 아닐때) (0) | 2011.11.22 |