Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6270

Add debug startup option flag for drill in embedded and server mode

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: None
    • Labels:

      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

            Activity

              People

              • Assignee:
                angozhiy Anton Gozhiy
                Reporter:
                volodymyr.tkach Volodymyr Tkach
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: