Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Add possibility to run sqlline.sh and drillbit.sh scripts with --<debug flag> with standard java remote debug options with the ability to override port.
It was decided to make a general flag (--jvm) to pass JVM options to the script to avoid hard coding the options that may change in future.
Usage examples:
bin/drill-embedded --jvm "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" bin/sqlline -u "jdbc:drill:zk=zkaddr:port" --jvm "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" sqlline.bat -u "jdbc:drill:zk=local" --jvm "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n"
The --jvm flag is not needed for drillbit startup, you can set the jvm properties directly after the start command:
bin/drillbit.sh start -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n
Attachments
Issue Links
- links to