flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maximilian Michels <...@apache.org>
Subject Re: remote debugging
Date Tue, 17 May 2016 12:08:58 GMT
Thanks for documenting, Stefano! I remember, this came in very handy
when debugging the Yarn integration and tests.

On Tue, May 17, 2016 at 12:32 PM, Stefano Baghino
<stefano.baghino@radicalbit.io> wrote:
>
> It's there, I've left the Eclipse paragraph empty, unfortunately I have no
> experience with remote debugging using it.
>
> On Tue, May 17, 2016 at 12:29 PM, Stephan Ewen <sewen@apache.org> wrote:
>
> > Super, thanks!
> >
> > On Tue, May 17, 2016 at 11:32 AM, Stefano Baghino <
> > stefano.baghino@radicalbit.io> wrote:
> >
> > > +1, great idea, I should've had it myself. :)
> > >
> > > I'll do it today, thanks for creating the page.
> > >
> > > On Tue, May 17, 2016 at 11:24 AM, Stephan Ewen <sewen@apache.org> wrote:
> > >
> > > > Hey Stefano!
> > > >
> > > > I think that question is bound to come up again. I created a page in
> > the
> > > > Flink Wiki to document this.
> > > >
> > > > If you have a few moments, would be great if you could add your
> > > description
> > > > there:
> > > >
> > > >
> > >
> > https://cwiki.apache.org/confluence/display/FLINK/Remote+Debugging+of+Flink+Clusters
> > > > (it is linked from the front page
> > > > https://cwiki.apache.org/confluence/display/FLINK/Apache+Flink+Home )
> > > >
> > > > Greetings,
> > > > Stephan
> > > >
> > > >
> > > > On Tue, May 17, 2016 at 4:26 AM, Vijay Srinivasaraghavan <
> > > > vijikarthi@yahoo.com.invalid> wrote:
> > > >
> > > > > Awesome, thanks Stefano!!
> > > > >
> > > > >     On Monday, May 16, 2016 9:57 AM, Stefano Baghino <
> > > > > stefano.baghino@radicalbit.io> wrote:
> > > > >
> > > > >
> > > > >  I had to do it a couple of times. Wonderful experience to understand
> > > the
> > > > > inner workings of Flink and explore it while running.
> > > > > I don't know if there's a preferred way to do this but this is how
I
> > > did
> > > > > it:
> > > > >
> > > > > Edit the run configurations in IntelliJ, click the + icon in the
> > upper
> > > > left
> > > > > corner, choose the "Remote" preset.
> > > > > Under the "Settings" pane, fill in the remote host where you'll run
> > > > Flink.
> > > > > Copy the "Command line arguments for running remote JVM".
> > > > > Go to the machine running Flink, choose the launch script you need
to
> > > > > "hijack" and append the copied arguments after the "java" command.
> > Make
> > > > > sure to set "suspend=y" if you want to make sure Flink doesn't start
> > > > > without your debugger attached.
> > > > >
> > > > > Now simply run Flink with the script you tampered with and run the
> > > > > debugger. Please note that if you set "suspend=y" Flink won't start
> > > until
> > > > > the debugger is attached to the process. Also beware that if the
> > > machine
> > > > > running Flink is far away from the remote debugger you may suffer
> > from
> > > > > increased latency when debugging.
> > > > >
> > > > > Hope I've been helpful, happy hacking. :)
> > > > >
> > > > > On Mon, May 16, 2016 at 6:43 PM, Vijay Srinivasaraghavan <
> > > > > vijikarthi@yahoo.com.invalid> wrote:
> > > > >
> > > > > > How do I attach remote debugger to running Flink cluster from
> > > IntelliJ?
> > > > > > Appreciate if anyone could share the steps?
> > > > > > RegardsVijay
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > BR,
> > > > > Stefano Baghino
> > > > >
> > > > > Software Engineer @ Radicalbit
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > BR,
> > > Stefano Baghino
> > >
> > > Software Engineer @ Radicalbit
> > >
> >
>
>
>
> --
> BR,
> Stefano Baghino
>
> Software Engineer @ Radicalbit

Mime
View raw message