mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update presto
This commit is contained in:
@@ -14,7 +14,7 @@ ENV PATH=${PRESTO_HOME}/bin:${PATH}
|
||||
WORKDIR $PRESTO_HOME
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache curl python tar \
|
||||
&& apk add --no-cache curl less python tar \
|
||||
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
|
||||
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
|
||||
&& chmod +x ./bin/presto \
|
||||
|
||||
@@ -27,12 +27,12 @@ $ docker stack deploy -c docker-stack.yml prestodb
|
||||
|
||||
$ docker service update --replicas-max-per-node=1 prestodb_worker
|
||||
|
||||
$ docker service update --replicas 10 prestodb_worker
|
||||
$ docker service update --replicas=10 prestodb_worker
|
||||
|
||||
$ docker ps | grep prestodb_coordinator | awk '{print $1}'
|
||||
4cc5c6c420d7
|
||||
|
||||
$ docker exec -it 4cc5c6c420d7 prestodb --server localhost:8080 --catalog tpch
|
||||
$ docker exec -it 4cc5c6c420d7 presto --server localhost:8080 --catalog tpch
|
||||
>>> show schemas;
|
||||
>>> show tables from tiny;
|
||||
>>> select * from tiny.customer limit 10;
|
||||
|
||||
@@ -14,12 +14,12 @@ services:
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
- node.hostname == presto-coordinator
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
||||
worker:
|
||||
image: vimagick/prestodb:alpine
|
||||
entrypoint: sh -c 'launcher run -Dnode.id=$$HOSTNAME'
|
||||
volumes:
|
||||
- /data:/data
|
||||
- prestodb_worker_conf:/opt/presto/etc
|
||||
|
||||
Reference in New Issue
Block a user