Skip to content

Commit

Permalink
extra trino worker
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkisse committed Aug 27, 2024
1 parent a0c7f29 commit b416746
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose/airflow/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ x-airflow-common:
&airflow-common
# image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.0.2}
# image: harbor.ukserp.ac.uk/dare/airflow/dags:pr-73 #1.4.4
image: harbor.ukserp.ac.uk/dlm/airflow/dags:1.13.1
image: harbor.ukserp.ac.uk/dlm/airflow/dags:1.14.1
environment:
&airflow-common-env
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
Expand All @@ -54,7 +54,7 @@ x-airflow-common:
AIRFLOW__API__AUTH_BACKEND: 'airflow.api.auth.backend.basic_auth'
#AIRFLOW__LOGGING__LOGGING_LEVEL: DEBUG
volumes:
# - ../../dags:/opt/airflow/dags
#- ../../dags:/opt/airflow/dags
- ../../../DLM-Dags/dags:/opt/airflow/dags
- ./logs:/opt/airflow/logs
- ./plugins:/opt/airflow/plugins
Expand Down
17 changes: 17 additions & 0 deletions docker-compose/minio-trino/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,23 @@ services:
networks:
- miniotrino

trino-worker:
image: 'trinodb/trino:438'
hostname: trino-worker
depends_on:
nginx:
condition: service_started
hive-metastore:
condition: service_started
trino-coordinator:
condition: service_started
ports:
- '8091:8080'
volumes:
- ./etc2:/etc/trino
networks:
- miniotrino

# mariadb:
# image: 'mariadb:lts'
# hostname: mariadb
Expand Down
7 changes: 7 additions & 0 deletions docker-compose/minio-trino/etc2/catalog/iceberg.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
connector.name=iceberg
hive.metastore.uri=thrift://hive-metastore:9083
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.aws-access-key=minio
hive.s3.aws-secret-key=minioadmin
iceberg.file-format=PARQUET
9 changes: 9 additions & 0 deletions docker-compose/minio-trino/etc2/catalog/minio.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
connector.name=hive
hive.metastore.uri=thrift://hive-metastore:9083
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.aws-access-key=minio
hive.s3.aws-secret-key=minioadmin
hive.non-managed-table-writes-enabled=true
hive.storage-format=ORC
hive.allow-drop-table=true
3 changes: 3 additions & 0 deletions docker-compose/minio-trino/etc2/config.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coordinator=false
http-server.http.port=8080
discovery.uri=http://trino-coordinator:8080
11 changes: 11 additions & 0 deletions docker-compose/minio-trino/etc2/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-server
-Xmx10G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+UseGCOverheadLimit
-XX:+ExitOnOutOfMemoryError
-XX:ReservedCodeCacheSize=256M
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000
3 changes: 3 additions & 0 deletions docker-compose/minio-trino/etc2/node.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node.environment=docker
node.data-dir=/data/trino
plugin.dir=/usr/lib/trino/plugin

0 comments on commit b416746

Please sign in to comment.