(4-4)HDFS的namenodeID

 

NameNodenamemodeID

 

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


 



DataNodenamemodeID

 

 

[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


 


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值