[英]Insufficient active worker nodes. Waited 5.00m for at least 1 workers, but only 0 workers are active
I try to make trino cluster with 2 nodes (1 coordinator, 1 worker) I am using docker trinodb/trino image and changed its etc/[files] with the following config.properties.我尝试使用 2 个节点(1 个协调器,1 个工作人员)创建 trino 集群我正在使用 docker trinodb/trino 映像并使用以下 config.properties 更改其 etc/[files]。 coordinator config:协调器配置:
coordinator=true
node-scheduler.include-coordinator=false
http-server.http.port=8080
discovery-server.enabled=true
discovery.uri=http://localhost:8080
query.max-memory=30GB
query.max-memory-per-node=5GB
query.max-total-memory-per-node=10GB
http-server.authentication.type=PASSWORD
http-server.https.enabled=true
http-server.https.port=8443
http-server.https.keystore.path=/etc/trino/server.pem
worker config工人配置
coordinator=false
http-server.http.port=8083
discovery.uri=http://coordinatorIP:8083
query.max-memory=30GB
query.max-memory-per-node=5GB
query.max-total-memory-per-node=10GB
but I got the following error:但我收到以下错误:
Query 20210309_074153_00003_ry76t failed: Insufficient active worker nodes. Waited 5.00m for at least 1 workers, but only 0 workers are active
My docker compose file is:我的 docker 撰写文件是:
version: '3'
services:
presto:
restart: always
image: trinodb/trino
container_name: trino
volumes:
- ./etc:/etc/trino
- ./plugin:/usr/lib/trino/plugin
- ./etc:/usr/usr/lib/trino/etc
ports:
- 9581:8443
- 8083:8080
Note: It seems connected and does not throw any errors and if I stop the master it throws:注意:它似乎已连接并且不会引发任何错误,如果我停止主它会抛出:
trino | 2021-03-09T08:04:13.200Z ERROR Announcer-3 io.airlift.discovery.client.Announcer Service announcement failed after 1.80ms. Next request will happen within 1.00ms
But as I mentioned it does not execute any query.但正如我提到的,它不执行任何查询。
The problem was node.properties and its node.id.问题是 node.properties 及其 node.id。 Each server needs a unique node.id每个服务器都需要一个唯一的 node.id
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.