`

ERROR: Found lingering reference file hdfs

阅读更多

 

Found lingering reference异常

第一种解决:hbase hbck -fixReferenceFiles  month_hotstatic

 

 

另一种方法:
#http://stackoverflow.com/questions/17810443/error-found-inconsistency-in-table-hbase
 
 

This looks like you had a failed region split, see [HBASE-8052] (https://issues.apache.org/jira/browse/HBASE-8502) for more details.

This bug leaves references to parent regions that have been moved in HDFS. To fix, just delete the reference files listed in the HBCK output e.g. hadoop fs -rm hdfs://master:8020/hbase/LogTable/f41ff2fae25d1dab3f16306f4f995369/l/d9c7d33257ae406caf8d94277ff6d247.fbda7904cd1f0ac9583e04029a138487.

Once the bad references are gone the region should be assigned automatically. You may have to do the assignment from the shell, in my experience though it only takes a minute or two for the region to get reassigned. Then run hbase hbck -fix again to confirm there are no other inconsistencies.

 
 
 
 hbase hbck > 1.log 2>&1
 cat 1.log | grep -i "ERROR" 
 
 cat 1.log | grep -i "ERROR" | awk -F"ERROR: Found lingering reference file " '{print $2}' >a.txt

#!/bin/sh


while read line
do
        hadoop fs -rmr $line

done < a.txt
分享到:
评论

相关推荐

    Nginx超时设置.docx

    sendfile on; tcp_nodelay on; # 设置客户端超时 client_header_timeout 15; # 请求头部超时时间 client_body_timeout 15; # 请求体超时时间 keepalive_timeout 65; # keep-alive 连接超时时间 lingering_...

    英语考试备考(bc册) 2(1).doc

    研究生英语课本考试点总结

    英语记叙文写作五感表达词汇.doc

    4. **Fragrance**:强调来自植物的清新甜美香气,如雨后的丁香花香:"Do you remember the lingering fragrance of lilacs after a rain?" 这句问读者是否还记得雨后丁香花的余香。 5. **Bouquet**:常用于形容酒或...

    大学同学英语结婚祝福语.docx

    2. **祝福语结构**:英文祝福语通常简洁明了,但富有诗意,如“Let this lingering poem ring the bell of happiness.” 这句话巧妙地将诗句与幸福的钟声相结合,表达了对新人幸福生活的期盼。 3. **比喻与象征**:...

    Android代码-TokenAutoComplete

    If you're already using the library, I'm looking at redesigning some of the core components to make this library more reliable and deal with some lingering bugs. Please give me feedback on how you're ...

    Spring.Boot.in.Action.2015.12.pdf

    chapter 7's deep dive into the Actuator answered some of the lingering questions I've had in the back of my head since picking up Boot well over a year ago. Chapter 8s thor- ough examination of ...

    nginx超时设置详细介绍

    `lingering_timeout`是一个在关闭连接前的等待时间,如果在该时间之后没有新的数据到达,服务器将直接关闭连接;否则,会读取完连接缓冲区上的数据并丢弃后才会关闭连接。 `resolver_timeout`是DNS解析的超时时间。...

Global site tag (gtag.js) - Google Analytics