DFS Read Exception: No live nodes contain current block

本文解决了HDFS中遇到的“Nolivenodescontaincurrentblock”问题,通过调整Hadoop配置参数来解决由慢速DataNode导致的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I met this problem when I testing the open file operation latency of HDFS. In the stress test, I continuously open and close files for about 1000 seconds.

See the resolution below.
I get it from http://wiki.apache.org/hadoop/Hbase/Troubleshooting#6

Problem: "No live nodes contain current block"
See an exception with above message in logs (usually hadoop 0.18.x).
Causes

  • Slow datanodes are marked as down by DFSClient; eventually all replicas are marked as 'bad' (HADOOP-3831).
Resolution
  • Try setting dfs.datanode.socket.write.timeout to zero (in hadoop 0.18.x -- See HADOOP-3831 for detail and why not needed in hadoop 0.19.x). See the thread at message from jean-adrien for some background. Note, this is an hdfs client configuration so needs to be available in $HBASE_HOME/conf. Making the change only in $HADOOP_HOME/conf is not sufficient. Copy your amended hadoop-site.xml to the hbase conf directory or add this configuration to $HBASE_HOME/conf/hbase-site.xml.
  • Try increasing dfs.datanode.handler.count from its default of 3. This is a server configuration change so must be made in $HADOOP_HOME/conf/hadoop-site.xml. Try increasing it to 10, then by additional increments of 10. It probably does not make sense to use a value larger than the total number of nodes in the cluster.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值