Hadoop: task process exit with nonzero status of 1 exception

Source: Internet
Author: User

Java. Io. ioexception: task process exit with nonzero status of 1. Many blog posts on the Internet say that the disk is not enough.

In fact, I often encounter this problem because the program throws Org. apache. hadoop. mapred. child: Error running child: Java. lang. outofmemoryerror: Unable to create new Native thread this problem causes the program to fail and delete the work interval, and eventually the file cannot be read or written. Therefore, this problem may also be caused by memory overflow.

Solution:

1. Increase the hadoop_heapsize value in the hadoop-env.sh

2. Increase the value of mapred. Child. java. opts in the mapred-site.xml (default: 200 m)

    property  >    name  > mapred. child. java. opts    name  >    value  >-xmx2048m 
      value  >    property  > 

3. decrease mapred-site.xml mapred. tasktracker. map. tasks. maximumde and mapred. tasktracker. reduce. tasks. maximum value

<Property><Name>Mapred. tasktracker. Map. Tasks. Maximum</Name><Value>15</Value></Property>

 

Hadoop: task process exit with nonzero status of 1 exception

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.