NameNode的namemodeID
在core-site.xml中设定了HDFS的存储路径
<span style="white-space:pre"> </span><property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/mydata</value>
</property>
[root@i-love-you mydata]# pwd
/usr/local/mydata
[root@i-love-you mydata]# ll
总用量 12
drwxr-xr-x. 4 root root 4096 3月 26 20:52 dfs
drwxr-xr-x. 5 root root 4096 3月 30 15:31 nm-local-dir
drwxr-xr-x. 3 root root 4096 3月 28 10:19 yarn
[root@i-love-you dfs]# pwd
/usr/local/mydata/dfs
[root@i-love-you dfs]# ll
总用量 8
drwx------. 3 root root 4096 3月 30 15:32 data
drwxr-xr-x. 3 root root 4096 3月 30 15:31 name
[root@i-love-you name]# pwd
/usr/local/mydata/dfs/name
[root@i-love-you name]# ll
总用量 8
drwxr-xr-x. 2 root root 4096 3月 30 16:05 current
-rw-r--r--. 1 root root 15 3月 30 16:04 in_use.lock
[root@i-love-you name]# ll current/
总用量 7192
-rw-r--r--. 1 root root 1048576 3月 26 21:04 edits_0000000000000000001-0000000000000000008
-rw-r--r--. 1 root root 1048576 3月 28 10:19 edits_0000000000000000009-0000000000000000009
-rw-r--r--. 1 root root 1048576 3月 29 12:18 edits_0000000000000000010-0000000000000000010
-rw-r--r--. 1 root root 1048576 3月 29 14:51 edits_0000000000000000011-0000000000000000168
-rw-r--r--. 1 root root 1048576 3月 29 18:07 edits_0000000000000000169-0000000000000000253
-rw-r--r--. 1 root root 1048576 3月 30 14:35 edits_0000000000000000254-0000000000000000254
-rw-r--r--. 1 root root 1048576 3月 30 16:05 edits_inprogress_0000000000000000255
-rw-r--r--. 1 root root 2430 3月 30 14:35 fsimage_0000000000000000253
-rw-r--r--. 1 root root 62 3月 30 14:35 fsimage_0000000000000000253.md5
-rw-r--r--. 1 root root 2430 3月 30 16:05 fsimage_0000000000000000254
-rw-r--r--. 1 root root 62 3月 30 16:05 fsimage_0000000000000000254.md5
-rw-r--r--. 1 root root 4 3月 30 16:05 seen_txid
-rw-r--r--. 1 root root 205 3月 30 16:05 VERSION
[root@i-love-you name]#
[root@i-love-you current]# more VERSION
#Mon Mar 30 16:05:05 CST 2015
namespaceID=1764561911
clusterID=CID-36a542d6-41e0-41e6-82a9-b2cf5ff1e594
cTime=0
storageType=NAME_NODE
blockpoolID=BP-1476006134-192.168.1.10-1427374210743
layoutVersion=-60
DataNode的namemodeID
[root@i-love-you data]# pwd
/usr/local/mydata/dfs/data
[root@i-love-you data]# ll
总用量 8
drwxr-xr-x. 3 root root 4096 3月 26 20:52 current
-rw-r--r--. 1 root root 15 3月 30 16:05 in_use.lock
[root@i-love-you data]#
[root@i-love-you current]# pwd
/usr/local/mydata/dfs/data/current/BP-1476006134-192.168.1.10-1427374210743/current
[root@i-love-you current]# ll
总用量 16
-rw-r--r--. 1 root root 20 3月 30 15:32 dfsUsed
drwxr-xr-x. 3 root root 4096 3月 29 13:23 finalized
drwxr-xr-x. 2 root root 4096 3月 29 18:07 rbw
-rw-r--r--. 1 root root 132 3月 30 16:05 VERSION
[root@i-love-you current]#
[root@i-love-you current]# pwd
/usr/local/mydata/dfs/data/current/BP-1476006134-192.168.1.10-1427374210743/current
[root@i-love-you current]# more VERSION
#Mon Mar 30 16:05:26 CST 2015
namespaceID=1764561911
cTime=0
blockpoolID=BP-1476006134-192.168.1.10-1427374210743
layoutVersion=-56