-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Description
Trino Version: 476
Problem: After following the legacy S3 filesystem migration documentation and making the prescribed configuration changes, Trino fails to start queries with the error:
java.lang.IllegalStateException: authenticators were not loaded
Configuration Changes Made: Updated Hive and Iceberg catalog files with the documented migration changes:
-fs.hadoop.enabled=true
+fs.hadoop.enabled=false
+fs.native-s3.enabled=true
-hive.s3.aws-access-key=<%= @hive_s3_access_key %>
-hive.s3.aws-secret-key=<%= @hive_s3_secret_key %>
-hive.s3.endpoint=<%= @hive_s3_endpoint %>
-hive.s3.path-style-access=true
+s3.aws-access-key=<%= @hive_s3_access_key %>
+s3.aws-secret-key=<%= @hive_s3_secret_key %>
+s3.endpoint=<%= @hive_s3_endpoint %>
+s3.path-style-access=true
Environment:
Storage backend: MinIO
Only changes made were the S3 filesystem migration configuration updates
No authentication configuration was modified
Expected Behavior: S3 filesystem migration should work without affecting authentication system
Actual Behavior: Authentication system fails to load, preventing query execution
java.lang.RuntimeException: Error starting query at https:<trino_url>/v1/statement returned an invalid response: JsonResponse{statusCode=500, headers={content-length=[3641], content-type=[text/plain], date=[Thu, 18 Sep 2025 17:55:41 GMT], vary=[Accept-Encoding]}, hasValue=false} [Error: java.lang.IllegalStateException: authenticators were not loaded
at com.google.common.base.Preconditions.checkState(Preconditions.java:513)
at io.trino.server.security.PasswordAuthenticatorManager.getAuthenticators(PasswordAuthenticatorManager.java:120)
at io.trino.server.security.PasswordAuthenticator.authenticate(PasswordAuthenticator.java:61)
at io.trino.server.security.AuthenticationFilter.filter(AuthenticationFilter.java:87)
at org.glassfish.jersey.server.ContainerFilteringStage.apply(ContainerFilteringStage.java:108)
at org.glassfish.jersey.server.ContainerFilteringStage.apply(ContainerFilteringStage.java:44)
at org.glassfish.jersey.process.internal.Stages.process(Stages.java:173)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:266)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
at org.glassfish.jersey.internal.Errors.process(Errors.java:244)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:266)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:253)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:696)
at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:397)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:349)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:358)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:312)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)
at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736)
at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1622)
at io.airlift.http.server.tracing.TracingServletFilter.doFilter(TracingServletFilter.java:115)
at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205)
at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1555)
at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:823)
at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:440)
at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:470)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:611)
at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1071)
at org.eclipse.jetty.server.Handler$Wrapper.handle(Handler.java:740)
at org.eclipse.jetty.server.handler.EventsHandler.handle(EventsHandler.java:81)
at org.eclipse.jetty.server.Server.handle(Server.java:182)
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:678)
at org.eclipse.jetty.util.thread.Invocable$ReadyTask.run(Invocable.java:175)
at org.eclipse.jetty.http2.server.internal.HttpStreamOverHTTP2$1.run(HttpStreamOverHTTP2.java:136)
at org.eclipse.jetty.util.thread.MonitoredQueuedThreadPool$1.run(MonitoredQueuedThreadPool.java:73)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:981)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1211)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1166)
at java.base/java.lang.Thread.run(Thread.java:1447)
]
at io.trino.client.StatementClientV1.requestFailedException(StatementClientV1.java:617)
at io.trino.client.StatementClientV1.executeRequest(StatementClientV1.java:520)
at io.trino.client.StatementClientV1.<init>(StatementClientV1.java:151)
at io.trino.client.StatementClientFactory.newStatementClient(StatementClientFactory.java:28)
at io.trino.cli.QueryRunner.startInternalQuery(QueryRunner.java:74)
at io.trino.cli.QueryRunner.startQuery(QueryRunner.java:64)
at io.trino.cli.Console.process(Console.java:368)
at io.trino.cli.Console.runConsole(Console.java:297)
at io.trino.cli.Console.run(Console.java:193)
at io.trino.cli.Console.call(Console.java:110)
at io.trino.cli.Console.call(Console.java:80)
at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at picocli.CommandLine.execute(CommandLine.java:2174)
at io.trino.cli.Trino.main(Trino.java:55)
Please let me know if i can provide any more info!
Metadata
Metadata
Assignees
Labels
No labels