Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to increase beeline java heap size?

Highlighted

How to increase beeline java heap size?

Rising Star

I am running into Java Heap Space issue while running a complex query against a big dataset. The same query works fine from Hive CLI. If I run small queries they run fine in beeline.

Is there any way I can increase beeline Java heap size for all users so they do not run out of memory?

2 REPLIES 2
Highlighted

Re: How to increase beeline java heap size?

@Shashant Panwar

If you click on the Hive Service --> Config you can see option to increase Hiveserver2 Heap Size and Client Heap Size.

Please increase them in order to overcome the issue.

20455-beelineheap.png

Were as in Hive CLI it connect directly to Hive Metastore but for beeline it has it's own metastore inside Hiveserver2. Hoep this helps you.

Re: How to increase beeline java heap size?

Contributor

If the issue is that the number of rows is too high starting beeline with beeline --incremental=true will be of help

Don't have an account?
Coming from Hortonworks? Activate your account here