HDFs Hyper-Lease Exception Summary (org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException)

Source: Internet
Author: User

HDFs Hyper-Lease Exception Summary (org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException)reprinted February 22, 2014 14:40:58
    • 9686

Exception information:

13/09/11 12:12:06 INFO HDFs. Dfsclient:small_buffer_size is 512org.apache.hadoop.ipc.remoteexception: Org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException:No Lease On/tmp/put_dir/20130911-121205-858/ie_ Ping1_access_log.2013091111.lzo File does not exist. Holder dfsclient_-2082829022 does not has any open files.        At Org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease (fsnamesystem.java:1623) at        Org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease (fsnamesystem.java:1614) at        Org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFileInternal (fsnamesystem.java:1669) at        Org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFile (fsnamesystem.java:1657) at        Org.apache.hadoop.hdfs.server.namenode.NameNode.complete (namenode.java:714)

The literal understanding of the file operation over the lease period, is actually the data stream during the operation of the file was deleted. It has been encountered before, usually because mapred multiple task operations are the same file, and a task is deleted after it is finished.

This time, however, this exception occurred while uploading the file in HDFs, which caused the upload to fail. Google A, some feedback with the dfs.datanode.max.xcievers parameters to reach the upper limit. This is the task Datanode processing the request.

The upper limit, which defaults to 256, is configured to 2048 on the cluster. So I went to all the Datanode and swept the log, and found that there was the IoE:

Java.io.IOException:xceiverCount 2049 exceeds the limit of concurrent xcievers 2048

Turn the source to find a bit xcievers, there are dataxcievers and dataxcieversserver two classes, Dataxcievers is the dataxcieversserver start a thread for processing input and output data stream, its run ()

The method has the following judgment:

1 public   void Run () {2          ...       Curxceivercount int = Datanode.getxceivercount ();       if (Curxceivercount > Dataxceiverserver.maxxceivercount) {         IOException throw new ("Xceivercount" + curXceiverCount59                               + "exceeds The limit of concurrent xcievers "                               + dataxceiverserver.maxxceivercount);       

Xcievers over the limit to throw a ioexception, this reaction to the dfsclient end, is the operation of the file is lost response, so there is the above lease extended exception.

Solution:

Continue to change the Xceivercount to 8192 and restart the cluster to take effect.

HDFs Hyper-Lease Exception Summary (org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException)

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.