[Hadoop]-Exception cannot obtain block length for Locatedblock

Source: Internet
Author: User

In the development of Flume Ng+hadoop, an exception occurred when running MapReduce Error:java.io.IOException:Cannot obtain block length for locatedblock{ bp-235416765-192.168.30.244-1430221967536:blk_1073889944_149172; Getblocksize () = 45839; Corrupt=false; offset=0; locs=[10.188.10.98:50010, 10.188.10.95:50010, 10.188.10.245:50010]}, we found through the fsck command that the current file is in the process of being written, and that the contents of the file are empty. As follows:

So when we get the data, it leads directly to an exception. So in this case, my idea is: The first scenario immediately writes out this file to disk, the second to delete the file.

But the first solution I don't know how to do now, so here I directly choose to delete Hadoop dfs-rm xxxxx can

[Hadoop]-Exception cannot obtain block length for Locatedblock

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.