Found lingering reference异常
hbase hbck -fixReferenceFiles month_hotstatic
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
异常问题解决
hadoop fsck
hbase hbck -fix
org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException): No lease o 异常解决
原因:
mapred.task.timeout设置时间过短,如上日志,在600秒左右任务状态没有任何变化,hadoop将该任务kill,并清理临时目录,后续遍找不到临时数据了。
修改参数
<property>
<name>mapred.task.timeout</name>
<value>600000</value>
<description>The number of milliseconds before a task will be
terminated if it neither reads an input, writes an output, nor
updates its status string.
</description>
mapred.task.timeout修改称1小时3600000即可。