diff --git a/trino/README.md b/trino/README.md index 7898849..1ff2be6 100644 --- a/trino/README.md +++ b/trino/README.md @@ -5,8 +5,7 @@ trino distributed over one or more heterogeneous data sources. ```bash -$ mkdir -p data/{etc,var} -$ chown -R 1000:1000 data +$ mkdir -m 777 data $ docker-compose up -d $ docker-compose exec trino trino >>> show catalogs; diff --git a/trino/data/etc/config.properties b/trino/data/etc/config.properties index a11cba3..99d05d0 100644 --- a/trino/data/etc/config.properties +++ b/trino/data/etc/config.properties @@ -1,5 +1,6 @@ -#single node install config coordinator=true node-scheduler.include-coordinator=true http-server.http.port=8080 discovery.uri=http://localhost:8080 +web-ui.authentication.type=fixed +web-ui.user=webui diff --git a/trino/data/etc/log.properties b/trino/data/etc/log.properties index abee45e..9f237f0 100644 --- a/trino/data/etc/log.properties +++ b/trino/data/etc/log.properties @@ -1,2 +1 @@ -# Enable verbose logging from Trino -#io.trino=DEBUG +io.trino=INFO diff --git a/trino/docker-compose.yml b/trino/docker-compose.yml index 3d4dc2d..f1312dd 100644 --- a/trino/docker-compose.yml +++ b/trino/docker-compose.yml @@ -2,9 +2,10 @@ version: "3.8" services: trino: image: trinodb/trino + command: ["/usr/lib/trino/bin/launcher", "run", "--etc-dir", "etc", "--data-dir", "data"] ports: - "8080:8080" volumes: - - ./data/etc:/etc/trino - - ./data/var:/var/lib/trino + - ./data:/opt/trino + working_dir: /opt/trino restart: unless-stopped