deniskuzZ commented on PR #6390:
URL: https://github.com/apache/hive/pull/6390#issuecomment-4162432024
@abstractdog i think we might not even need core profile
- Removed hiveserver2-llap service entirely
- Single hiveserver2 with ${HIVE_EXECUTION_MODE:-container} and LLAP flags
hardcoded (harmless in container mode)
- .env with commented toggle — uncomment both lines for LLAP mode
- Always docker compose up
WDYT?
docker-compole.yml patch
````
Subject: [PATCH] patch
---
Index: packaging/src/docker/docker-compose.yml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/packaging/src/docker/docker-compose.yml
b/packaging/src/docker/docker-compose.yml
--- a/packaging/src/docker/docker-compose.yml (revision
93c30ab862034fc7ea3e9742d888417bbf456926)
+++ b/packaging/src/docker/docker-compose.yml (date 1774958746925)
@@ -73,6 +73,7 @@
- metastore
restart: unless-stopped
container_name: hiveserver2
+ hostname: hiveserver2
environment:
USER: hive
HADOOP_CLASSPATH: /opt/hadoop/share/hadoop/tools/lib/*
@@ -85,49 +86,7 @@
SERVICE_OPTS: >-
-Xmx1G
-Dhive.metastore.uris=thrift://metastore:9083
- IS_RESUME: 'true'
- SERVICE_NAME: 'hiveserver2'
-
- S3_ENDPOINT_URL: "${S3_ENDPOINT_URL}"
- AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
- AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
- ports:
- - '10000:10000'
- - '10002:10002'
- volumes:
- - warehouse:/opt/hive/data/warehouse
- - scratch:/opt/hive/scratch
- # Mount local jars to a temporary staging area (Read-Only)
- - ./jars:/tmp/ext-jars:ro
- networks:
- - hive
-
- hiveserver2-llap:
- profiles:
- - llap
- image: apache/hive:${HIVE_VERSION}
- depends_on:
- - metastore
- - zookeeper
- - llapdaemon1
- - llapdaemon2
- restart: unless-stopped
- container_name: hiveserver2-llap
- environment:
- USER: hive
- HADOOP_CLASSPATH: /opt/hadoop/share/hadoop/tools/lib/*
- HIVE_SERVER2_THRIFT_PORT: 10001
- HIVE_SERVER2_WEB_PORT: 10003
-
- # Directories shared between HiveServer2 and LLAP daemon
- HIVE_SCRATCH_DIR: /opt/hive/scratch
- HIVE_QUERY_RESULTS_CACHE_DIRECTORY: /opt/hive/scratch/_resultscache_
-
- # SERVICE_OPTS for LLAP mode
- SERVICE_OPTS: >-
- -Xmx1G
- -Dhive.metastore.uris=thrift://metastore:9083
- -Dhive.execution.mode=llap
+ -Dhive.execution.mode=${HIVE_EXECUTION_MODE:-container}
-Dhive.llap.execution.mode=all
-Dhive.zookeeper.quorum=zookeeper:2181
-Dhive.llap.daemon.service.hosts=@llap0
@@ -138,8 +97,9 @@
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
ports:
+ - '10000:10000'
- '10001:10001'
- - '10003:10003'
+ - '10002:10002'
volumes:
- warehouse:/opt/hive/data/warehouse
- scratch:/opt/hive/scratch
````
.env
````
# Uncomment the following lines to enable LLAP mode
#HIVE_EXECUTION_MODE=llap
#COMPOSE_PROFILES=llap
````
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]