hadoop版本:2.9.2

1、带宽的设置参数: dfs.datanode.balance.bandwidthPerSec   默认值 10m

2、datanode之间数据块的传输线程大小:dfs.datanode.max.transfer.threads 默认值4096

3、修改dfs.datanode.balance.max.concurrent.moves ,指定DataNode上同时用于balance待移动block的最大线程个数,这个值默认是50

如果dfs.datanode.balance.max.concurrent.moves 这个值设置不合理,balancer里面会报IO错误:(我这里设置的有点高了,达到了200)

java.io.IOException: Got error, status=ERROR, status message Not able to receive block  from /.x.x.x: because threads quota is exceeded., block move is failed
at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:)
at org.apache.hadoop.hdfs.server.balancer.Dispatcher$PendingMove.receiveResponse(Dispatcher.java:)
at org.apache.hadoop.hdfs.server.balancer.Dispatcher$PendingMove.dispatch(Dispatcher.java:)
at org.apache.hadoop.hdfs.server.balancer.Dispatcher$PendingMove.access$(Dispatcher.java:)
at org.apache.hadoop.hdfs.server.balancer.Dispatcher$.run(Dispatcher.java:)

4、如果不想在datanode设置带宽,可以临时设置 hdfs dfsadmin -setBalancerBandwidth 20m

5、启动balancer的方法

(1)、start-balancer.sh -threshold 1

(2)、hadoop balancer -threshold  1

(3)、hadoop-daemon.sh start balancer -threshold 1

最新文章

  1. #9.5课堂JS总结#循环语句、函数
  2. Android之Viewpager+Fragment实现懒加载
  3. leetcode36. Valid Sudoku
  4. Java对象 json之间的转换(json-lib)
  5. retrifit
  6. Linux的时钟管理
  7. Myeclipse自动生成javabean的get和set方法
  8. Seafile的手册
  9. Subsets 【dfs】
  10. JPA 批注参考
  11. HTML+CSS D07 边框、div
  12. Windbg查看调用堆栈(k*)
  13. Java 银行家算法
  14. Jamon
  15. 安装odoo小程序商城模块报错 KeyError: u'oejia_weshop'
  16. ps 命令的十个简单用法
  17. 【Dojo 1.x】笔记3 等待DOM加载完成
  18. Python并发复习3 - 多进程模块 multiprocessing
  19. 小程序 切换到tabBar页面不刷新问题
  20. SpringBoot的文件下载

热门文章

  1. openwrt luci web分析
  2. MQ相关
  3. iOS自动签名网站
  4. netcore里使用jwt做登陆授权
  5. Python 源码剖析 目录
  6. Winserver-FailoverCluster验证异常
  7. centos7 编译安装redis
  8. (备忘)解决用Xftp向CentOS7 传文件速度慢的问题
  9. 华为云和开源Istio运维管理对比样例应用部署
  10. Codeforces C. A Simple Task(状态压缩dp)