- Community Home
- >
- Software
- >
- HPE Ezmeral Software platform
- >
- Hive heap size question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2021 04:21 AM
01-29-2021 04:21 AM
Hello everyone,
I struggle to understand how do I increase the Hive heap memory. I tred to change HADOOP_HEAPSIZE but it looks like it doesn't reflect changes.
How can I increase the Hive heap size? Does HADOOP_HEAPSIZE work for Hive?
Thanks in advance!
Pavlo.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2021 04:27 AM
01-29-2021 04:27 AM
SolutionHi @prusyn,
No, "HADOOP_HEAPSIZE" does not work for Hive now. When "HADOOP_HEAPSIZE" is used, it is always overridden by 512 Mb specified in hadoop-env.sh. This issue described in HADOOP-10245 and fixed in HADOOP-9902 .
For increasing Hive heap size, you can use "HADOOP_CLIENT_OPTS" option. e.g.:
export HADOOP_CLIENT_OPTS="${HADOOP_CLIENT_OPTS} -Xmx4096m"
If you want to configure this value separately for each Hive service you can use:
if [ "$SERVICE" = "hiveserver2" ]; then #For hiveserver2
export HADOOP_CLIENT_OPTS="${HADOOP_CLIENT_OPTS} -Xmx4096m"
fi
if [ "$SERVICE" = "metastore" ]; then #For hive metastore
export HADOOP_CLIENT_OPTS="${HADOOP_CLIENT_OPTS} -Xmx1024m"
fi
if [ "$SERVICE" = "cli" ]; then #For hive shell
export HADOOP_CLIENT_OPTS="${HADOOP_CLIENT_OPTS} -Xmx1024m"
fi
Thanks,
Murshid Chalaev