Hive LLAP (Live Long and Process) keeps long-running daemons with cached data and ready executors, so interactive Hive queries skip container start-up and repeated reads. It pays off for many short, repeated queries over the same data. It adds little for large, infrequent batch jobs. Size each daemon so executors, cache and headroom fit inside the container, and confirm the exact settings for your Cloudera release.
The sizing rules below come from Apache Hive's LLAP documentation and from older Cloudera and Hortonworks guidance, so treat them as a starting point.
When LLAP pays off
| Workload | LLAP helps? | Why |
|---|---|---|
| Many short queries from BI tools | Yes | Daemons are warm, so no container start-up per query |
| Repeated queries over the same hot data | Yes | The cache avoids rereads |
| Mixed interactive load with some batch | Often | Needs queues so batch does not crowd out interactive |
| Large nightly ETL | Rarely | Reads are big and once; cache hit rate is low |
| Queries needing sub-second answers at high concurrency | Check Impala | Impala is built for that pattern |
| Small cluster with no spare memory | No | LLAP holds memory all day |
The exception that changes the choice: if the same tables serve both BI and ETL, LLAP can serve the BI side while ETL uses regular Tez containers. Our guide on Impala vs Hive covers the engine choice.
Sizing: memory first
Each LLAP daemon runs in a YARN container. Inside it sit the executors' memory (heap), an off-heap cache, and some headroom for the JVM. They must fit together.
- Executors: start with about one per core you give LLAP, then reduce if memory is short. Each executor runs one task at a time.
- Heap: executors times the memory per executor. Older guidance used around 4 GB each as a starting point.
- Cache: what remains after heap and headroom. The cache is a main reason to use LLAP, so a tiny cache defeats it.
- Headroom: leave room for JVM overhead. Older guidance suggests the smaller of 5 percent of the daemon size or 6 GB.
- Container size: the daemon memory plus cache must fit inside the YARN container.
- Number of daemons: one per node on the nodes you assign. More daemons means more parallelism and more cache.
The Cloudera community sizing article and the HDP 3.0 performance tuning guide walk through the arithmetic. They were written for HDP, so check the equivalent in your platform.
Configuration to check
- Daemon container memory:
hive.llap.daemon.yarn.container.mb. - Cache size:
hive.llap.io.memory.size. - Executors per daemon:
hive.llap.daemon.num.executors. - IO layer:
hive.llap.io.enabled. - Queue: the YARN queue LLAP runs in, sized so it is not starved.
- Execution mode: make sure the queries you want use LLAP, not plain Tez containers.
In Cloudera Data Warehouse, the platform sets much of this through virtual warehouse sizing. Check which settings you can change in your environment.
Monitoring
- Cache hit rate: low hit rates mean the cache is too small or the workload does not reuse data.
- Executor use: executors idle most of the day mean over-sizing.
- Queue waits: queries waiting for executors mean too few.
- YARN memory: LLAP holds memory all the time. Check that other workloads still fit.
- Query times before and after: record a baseline on a sample of real queries.
- Daemon restarts and errors: check logs for out-of-memory events in the daemons.
A tuning loop
Start with a conservative size, run a week of real queries, and read the cache and executor metrics. Then change one thing, such as cache size or executor count, and measure again. Do not copy another cluster's numbers.
For the wider picture of table layout, see Hive to Iceberg migration. For the service, see Impala and Hive on Cloudera.
Mistakes to avoid
- Giving LLAP the whole cluster, which starves everything else on YARN.
- Sizing from another cluster's numbers. Node size, data size and query mix all change the answer.
- Judging LLAP on the first query of the day. The cache is cold until queries warm it.
- Sending large ETL through LLAP because it is there.
- Leaving the queue shared, so a runaway batch job takes the executors that interactive users need.
- Never rechecking. Data grows, users change and the right cache size moves with them.
Sizing worksheet
Write four numbers per node before you change anything: memory given to LLAP, cores given to LLAP, the executor count you chose and the cache that remains. Then write the three results you expect: cache hit rate, queue wait and query time for ten named queries. After a week, compare. If the actual figures miss, change one input and note it. The worksheet is the record that lets the next engineer understand why the numbers are what they are.
Questions we hear
Is LLAP the same as Impala? No. Both give interactive SQL on Hadoop data, but LLAP is Hive with long-running daemons and a cache, and Impala is a separate engine. Pick by workload.
How many executors should a daemon have? Older guidance starts at one per core and reduces if memory is short. Confirm for your release and test.
Does LLAP help ETL? Rarely. Large, once-off reads gain little from a cache. It helps most for repeated interactive queries.
Sources checked November 27, 2026:



