MapReduce imports MySQL data into HDFs issues

Source: Internet
Author: User

Today, when executing an SQL statement, I encountered an error java.sql.SQLException:Error writing file '/tmp/mykn6jq8 ' (errcode:28). Search, this problem should be caused by the lack of space in the temporary directory indicated in the error prompt.

This error if you want to see its phenomenon, you must monitor the size of the temporary folder at the SQL runtime, you can see that MySQL created a temporary file in/tmp, the size of the temporary file depends on the SQL statement and the size of the table.

I have about 290,000 rows of data in my table, about 30 columns, using INSERT into M (...) Select ... from MP where Contentlen < 3145729 GROUP BY concat (...) , MySQL will be in the temporary directory to create a near 6G of temporary files, I have only 5G disk, so the MySQL reported to write file errors.


MapReduce imports MySQL data into HDFs issues

Related Article

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.