mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
add trino
This commit is contained in:
parent
71f8547d22
commit
f783dcbf4e
@ -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
19
trino/README.md
Normal 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
|
1
trino/data/etc/catalog/jmx.properties
Normal file
1
trino/data/etc/catalog/jmx.properties
Normal file
@ -0,0 +1 @@
|
||||
connector.name=jmx
|
1
trino/data/etc/catalog/memory.properties
Normal file
1
trino/data/etc/catalog/memory.properties
Normal file
@ -0,0 +1 @@
|
||||
connector.name=memory
|
2
trino/data/etc/catalog/tpcds.properties
Normal file
2
trino/data/etc/catalog/tpcds.properties
Normal file
@ -0,0 +1,2 @@
|
||||
connector.name=tpcds
|
||||
tpcds.splits-per-node=4
|
2
trino/data/etc/catalog/tpch.properties
Normal file
2
trino/data/etc/catalog/tpch.properties
Normal file
@ -0,0 +1,2 @@
|
||||
connector.name=tpch
|
||||
tpch.splits-per-node=4
|
5
trino/data/etc/config.properties
Normal file
5
trino/data/etc/config.properties
Normal 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
14
trino/data/etc/jvm.config
Normal 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
|
2
trino/data/etc/log.properties
Normal file
2
trino/data/etc/log.properties
Normal file
@ -0,0 +1,2 @@
|
||||
# Enable verbose logging from Trino
|
||||
#io.trino=DEBUG
|
3
trino/data/etc/node.properties
Normal file
3
trino/data/etc/node.properties
Normal file
@ -0,0 +1,3 @@
|
||||
node.environment=docker
|
||||
node.data-dir=/var/lib/trino
|
||||
node.id=master
|
10
trino/docker-compose.yml
Normal file
10
trino/docker-compose.yml
Normal 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
|
@ -1,7 +1,7 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
zookeeper:
|
||||
image: zookeeper
|
||||
image: zookeeper:3.7
|
||||
ports:
|
||||
- "2181:2181"
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user