Skip to content

Commit 7f63ca6

Browse files
authored
HIVE-29686: Env variables for substitution are not propagated to entrypoint.sh from start-hive.sh (#6566)
1 parent 9e38b8a commit 7f63ca6

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

packaging/src/docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ docker compose logs -f llapdaemon
212212
To stop and remove the LLAP stack:
213213

214214
```shell
215-
./stop-hive.sh --llap # to stop and delete containers
215+
./stop-hive.sh # to stop and delete containers
216216
#OR
217-
./stop-hive.sh --llap --cleanup # to remove volumes also
217+
./stop-hive.sh --cleanup # to remove volumes also
218218
```
219219

220220
#### Usage

packaging/src/docker/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ services:
8484
HIVE_SCRATCH_DIR: /opt/hive/scratch
8585
HIVE_QUERY_RESULTS_CACHE_DIRECTORY: /opt/hive/scratch/_resultscache_
8686

87+
# LLAP / external Tez session wiring — consumed by envsubst against
88+
# hive-site.xml.template and tez-site.xml.template in entrypoint.sh.
89+
# Without these, the templates fall back to the defaults in
90+
# entrypoint.sh (external sessions disabled) even when start-hive.sh
91+
# was invoked with --llap.
92+
HIVE_ZOOKEEPER_QUORUM: "${HIVE_ZOOKEEPER_QUORUM:-}"
93+
HIVE_LLAP_DAEMON_SERVICE_HOSTS: "${HIVE_LLAP_DAEMON_SERVICE_HOSTS:-}"
94+
HIVE_SERVER2_TEZ_USE_EXTERNAL_SESSIONS: "${HIVE_SERVER2_TEZ_USE_EXTERNAL_SESSIONS:-false}"
95+
TEZ_FRAMEWORK_MODE: "${TEZ_FRAMEWORK_MODE:-}"
96+
8797
DB_DRIVER: postgres
8898
SERVICE_OPTS: >-
8999
-Xmx1G

0 commit comments

Comments
 (0)