活动工作节点不足。等待至少 1 个工人 5.00m,但只有 0 个工人处于活动状态
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
注意:它似乎已连接并且不会抛出任何错误,如果我停止 master,它会抛出:
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
我尝试用 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
注意:它似乎已连接并且不会抛出任何错误,如果我停止 master,它会抛出:
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