6

I've been working on expanding the Apache Flink Python API to better match the Java API and I get weird errors about the types of the data I am working on. Is there a way to attach a Java debugger (e.g. Intellij IDEA) to debug Flink itself?

asked Jun 6, 2016 at 13:47
1
  • 2
    Yes it's possible. Google for "Java Remote debug command line" Commented Jun 6, 2016 at 14:09

1 Answer 1

6

Thanks to Svetlin Zarev for pointing out remote Java debugging. Here are some helpful things I should've found before asking:

  1. Set up remote debugging in IDE/debugger/whatever e.g. for IntelliJ IDEA
  2. Modify Apache Flink JVM arguments by setting env.java.opts in the configuration using the appropriate settings for remote debugging

Or to debug Flink job runners, set up remote debugging and run the job using bin/flink with JVM_ARGS set in your environment. Make sure to set JVM_ARGS only for bin/flink and not for the Flink job manager (i.e. bin/start-local.sh) or the ports will clash.

I've made a little fish shell function that wraps Flink job run so that the proper arguments are set here.

answered Jun 6, 2016 at 14:22
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.