1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

add trino

This commit is contained in:
kev 2021-11-26 15:50:32 +08:00
parent 71f8547d22
commit f783dcbf4e
12 changed files with 61 additions and 1 deletions

View File

@ -428,6 +428,7 @@ A collection of delicious docker recipes.
- [x] amancevice/superset
- [x] tile38/tile38
- [x] traefik
- [x] trinodb/trino
- [x] v2ray/official :cn:
- [x] mpromonet/v4l2rtspserver :camera:
- [x] centurylink/watchtower

19
trino/README.md Normal file
View File

@ -0,0 +1,19 @@
trino
=====
[Trino][1] is a distributed SQL query engine designed to query large data sets
distributed over one or more heterogeneous data sources.
```bash
$ mkdir -p data/{etc,var}
$ chown -R 1000:1000 data
$ docker-compose up -d
$ docker-compose exec trino trino
>>> show catalogs;
>>> show schemas from jmx;
>>> show tables from jmx.current;
>>> select * from jmx.current."java.lang:type=operatingsystem";
>>> quit
```
[1]: https://trino.io/docs/current/installation/deployment.html

View File

@ -0,0 +1 @@
connector.name=jmx

View File

@ -0,0 +1 @@
connector.name=memory

View File

@ -0,0 +1,2 @@
connector.name=tpcds
tpcds.splits-per-node=4

View File

@ -0,0 +1,2 @@
connector.name=tpch
tpch.splits-per-node=4

View File

@ -0,0 +1,5 @@
#single node install config
coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
discovery.uri=http://localhost:8080

14
trino/data/etc/jvm.config Normal file
View File

@ -0,0 +1,14 @@
-server
-Xmx1G
-XX:-UseBiasedLocking
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:ReservedCodeCacheSize=256M
-XX:PerMethodRecompilationCutoff=10000
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000

View File

@ -0,0 +1,2 @@
# Enable verbose logging from Trino
#io.trino=DEBUG

View File

@ -0,0 +1,3 @@
node.environment=docker
node.data-dir=/var/lib/trino
node.id=master

10
trino/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3.8"
services:
trino:
image: trinodb/trino
ports:
- "8080:8080"
volumes:
- ./data/etc:/etc/trino
- ./data/var:/var/lib/trino
restart: unless-stopped

View File

@ -1,7 +1,7 @@
version: "3.8"
services:
zookeeper:
image: zookeeper
image: zookeeper:3.7
ports:
- "2181:2181"
volumes: