trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.49k stars 3.02k forks source link

MACOS 454 Archive Single Node Deploy Error Fetching Node State from http://10.5.0.2:8080 Query failed: Encountered too many errors talking to a worker node. #23125

Open datasundae opened 3 months ago

datasundae commented 3 months ago

With MACOS (14.4.1) 454 Archive Single Node Deploy trino appears to search for a worker node 10.5.0.2 which has not been defined. Further I can't find any reference to that IP address in the source code. Attempts to connect to catalogs fail with reference to a failure to connect with this worker node.

io.trino.memory.RemoteNodeMemory & io.trino.metadata.RemoteNodeState both report Error fetching memory info from http://10.5.0.2:8080/v1/

There is also an error reported related to that IP address and node:

ERROR page-buffer-client-callback-13 io.trino.operator.HttpPageBufferClient Request to delete http://10.5.0.2:8080/v1/task/20240824_192057_00000_4ydgp.0.0.0/results/0 failed java.util.concurrent.CancellationException: Task was cancelled.

I only have the tpch connector define but SHOW CATALOG fails:

trino> SHOW CATALOGS;

Query 20240824_192057_00000_4ydgp failed: Encountered too many errors talking to a worker node. The node may have crashed or be under too much load. This is probably a transient issue, so please retry your query in a few minutes. (getting task status http://10.5.0.2:8080/v1/task/20240824_192057_00000_4ydgp.2.0.0 - 21 failures, failure duration 61.44s, total failed request time 58.01s)

Configuration files are copied directly from Trino: The Definitive Guide

config.properties file:

coordinator=true node-scheduler.include-coordinator=true http-server.http.port=8080 discovery.uri=http://localhost:8080

node.properties file:

node.environment=demo

tpch.properties file:

connector.name=tpch

Even if, somehow, this is a misconfiguration on my part it would seem some sort of improved error handling or message would be helpful.

mosabua commented 2 months ago

I provided config files that work for me locally to @datasundae .. no idea where the IP address is coming from. He will try and see.

Also note this is a tarball install