Problem Description:
This error occurs java.io.IOException: Can not obtain block length for LocatedBlock {BP-1331
Reason: The
file shuts down unexpectedly, resulting in failure to read and write tasks
Use the command to view the status of file blocks:
HDFS fsck /data/115/apkinfo/0-11-20180410170000.log
Use the command to restore:
HDFS Debug recoverLease -path /data/115/apkinfo/0-11-20180410170000.log