hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "He Chen" <air...@gmail.com>
Subject About the lock
Date Fri, 10 Oct 2008 16:20:31 GMT
hey every one

I use the hadoop-0.17.2.1. the slaves file in conf directory file is:

rack02
rack03
rack07
rack05
rack12
rack14

But When I use "start-all.sh", all the datanodes have started. But I use
"hadoop dfsadmin -report", there is only 2 datanodes:

Datanodes available: 2
Name: 192.168.0.22:50010
State          : In Service
Total raw bytes: 331046674432 (308.31 GB)
Remaining raw bytes: 278575118269(259.44 GB)
Used raw bytes: 24576 (24 KB)
% used: 0%
Last contact: Fri Oct 10 11:16:41 CDT 2008

Name: 192.168.0.31:50010
State          : In Service
Total raw bytes: 331046674432 (308.31 GB)
Remaining raw bytes: 278575134325(259.44 GB)
Used raw bytes: 24576 (24 KB)
% used: 0%
Last contact: Fri Oct 10 11:17:14 CDT 2008
I refer to the log file, it shows that:

2008-10-10 10:31:18,180 INFO org.apache.hadoop.dfs.Storage: Cannot lock
storage /opt/che/hadoop-0.17.2.1/tmp/dfs/data. The directory is already
locked.
2008-10-10 10:31:18,290 ERROR org.apache.hadoop.dfs.DataNode:
java.io.IOException: Cannot lock storage
/opt/che/hadoop-0.17.2.1/tmp/dfs/data. The directory is already locked.
        at
org.apache.hadoop.dfs.Storage$StorageDirectory.lock(Storage.java:404)
        at
org.apache.hadoop.dfs.Storage$StorageDirectory.analyzeStorage(Storage.java:278)
        at
org.apache.hadoop.dfs.DataStorage.recoverTransitionRead(DataStorage.java:103)
        at org.apache.hadoop.dfs.DataNode.startDataNode(DataNode.java:258)
        at org.apache.hadoop.dfs.DataNode.<init>(DataNode.java:176)
        at org.apache.hadoop.dfs.DataNode.makeInstance(DataNode.java:2795)
        at
org.apache.hadoop.dfs.DataNode.instantiateDataNode(DataNode.java:2750)
        at org.apache.hadoop.dfs.DataNode.createDataNode(DataNode.java:2758)
        at org.apache.hadoop.dfs.DataNode.main(DataNode.java:2880)
2008-10-10 10:31:18,291 INFO org.apache.hadoop.dfs.DataNode: SHUTDOWN_MSG:
What is the matter??? I am sure to keep the slaves and master file
coherently.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message