Narsinha Kulkarni
Narsinha Kulkarni

Reputation: 67

How to debug presto server project?

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)

Upvotes: 1

Views: 1806

Answers (1)

kokosing
kokosing

Reputation: 5601

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

Upvotes: 3

Related Questions