问题描述
我正在尝试按照以下步骤在 Eclipse 上调试 presto 服务器,com.facebook.presto.PrestoServer 类 > 在 main 方法中设置调试断点.但是,以下错误即将到来.
1) 需要显式绑定并且 com.facebook.presto.execution.TaskManager 未显式绑定.同时定位 com.facebook.presto.execution.TaskManager对于 com.facebook.presto.server.GracefulShutdownHandler.(GracefulShutdownHandler.java:66) 的第一个参数在 com.facebook.presto.server.GracefulShutdownModule.setup(GracefulShutdownModule.java:27)
最简单的就是按照https://github.com/prestosql/presto/blob/master/README.md#running-presto-in-your-ide>
如果您想从现有 Presto 安装中将调试器附加到服务器,请将以下内容添加到 jvm.config 文件中(请参阅 https://prestosql.io/docs/current/installation/deployment.html#jvm-config),重启 Presto 服务器,然后附加调试器:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
I am trying to debug presto server on eclipse with following steps,com.facebook.presto.PrestoServer class > set debug break point inside main method. but, following errors are coming.
1) Explicit bindings are required and com.facebook.presto.execution.TaskManager is not explicitly bound. while locating com.facebook.presto.execution.TaskManager for the 1st parameter of com.facebook.presto.server.GracefulShutdownHandler.(GracefulShutdownHandler.java:66) at com.facebook.presto.server.GracefulShutdownModule.setup(GracefulShutdownModule.java:27)
The simplest is to follow the https://github.com/prestosql/presto/blob/master/README.md#running-presto-in-your-ide
In case if you would like attach a debugger to a server from existing Presto installation, please add the below to jvm.config file (see https://prestosql.io/docs/current/installation/deployment.html#jvm-config), restart Presto server and then attach the debugger:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
这篇关于如何调试 presto 服务器项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!