Hive java.lang.OutOfMemoryError:unable to create new native thread exception

Source: Internet
Author: User

   recently java.lang.outofmemoryerror:unable to create new when performing multiple HIVE-E operations at the same time Native thread exception or Exception in thread ' main ' java.lang.RuntimeException:java.lang.RuntimeException:Unable to Instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient. Tortured for a long time, later found that the machine does not set the number of created threads caused by the default is 1024, you need to change the system configuration file, set a large line.

Modify/etc/security/limits.conf

* Soft Nofile 65536
* Hard Nofile 65536
Username Soft Nproc 32000
Username Hard Nproc 32000
Username Soft Stack 1024
Username Hard Stack 1024

Modifying the configuration file requires the client to be re-logged in to take effect.

Hive java.lang.OutOfMemoryError:unable to create new native thread 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.