姜小嫌

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年9月20日

摘要: 线上的fsimage 有1.8G左右了,设置了6G heap 不够用了 新生代:老年代=1:2=2G: 4G NameNode的内存主要由NameSpace和BlocksMap占用,其中NameSpace存储的主要是INodeFile和INodeDirectory对象,BlocksMap存储的主要是 阅读全文
posted @ 2018-09-20 22:52 姜小嫌 阅读(1022) 评论(0) 推荐(0) 编辑

摘要: ``` #!/bin/bash for i in hadoop01 hadoop02 hadoop03 hadoop04 hadoop05 hadoop06 hadoop07 hadoop08 hadoop09 hadoop10 hadoop11 hadoop12 do ssh -o StrictHostKeyChecking=no -p50022 $i "echo $i" & ... 阅读全文
posted @ 2018-09-20 18:07 姜小嫌 阅读(621) 评论(0) 推荐(0) 编辑

摘要: time 单位是秒 uploading image 665049.png 阅读全文
posted @ 2018-09-20 15:34 姜小嫌 阅读(155) 评论(0) 推荐(0) 编辑

摘要: 把以下脚本配置到 crontab 下 ,10分钟一次,进行打点,记录复制块的进度。 想让节点快速退役(下线)的方法可以参考我的 https://www.cnblogs.com/jiangxiaoxian/p/9665588.html 文章。 日志 meta_recods.log 内容 线上参数如下( 阅读全文
posted @ 2018-09-20 15:05 姜小嫌 阅读(687) 评论(0) 推荐(0) 编辑

摘要: ``` >>> a = [1,2,3] >>> b = [2,4,5] >>> list(set(a).intersection(set(b))) [2] >>> list(set(a).union(set(b))) [1, 2, 3, 4, 5] >>> list(set(a).difference(set(b))) [1, 3] >>> list(set(b).difference(set(a... 阅读全文
posted @ 2018-09-20 14:09 姜小嫌 阅读(716) 评论(0) 推荐(0) 编辑