[英]Insufficient active worker nodes. Waited 5.00m for at least 1 workers, but only 0 workers are active
我嘗試使用 2 個節點(1 個協調器,1 個工作人員)創建 trino 集群我正在使用 docker trinodb/trino 映像並使用以下 config.properties 更改其 etc/[files]。 協調器配置:
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
工人配置
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
但我收到以下錯誤:
Query 20210309_074153_00003_ry76t failed: Insufficient active worker nodes. Waited 5.00m for at least 1 workers, but only 0 workers are active
我的 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
注意:它似乎已連接並且不會引發任何錯誤,如果我停止主它會拋出:
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
但正如我提到的,它不執行任何查詢。
問題是 node.properties 及其 node.id。 每個服務器都需要一個唯一的 node.id
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.