Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4B4DC2009A8 for ; Tue, 17 May 2016 17:04:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 49C081609F5; Tue, 17 May 2016 15:04:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 938051607A8 for ; Tue, 17 May 2016 17:04:37 +0200 (CEST) Received: (qmail 98461 invoked by uid 500); 17 May 2016 15:04:36 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 98450 invoked by uid 99); 17 May 2016 15:04:36 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 15:04:36 +0000 Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 0D2A91A0040 for ; Tue, 17 May 2016 15:04:36 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id n11so7064426lbh.1 for ; Tue, 17 May 2016 08:04:35 -0700 (PDT) X-Gm-Message-State: AOPr4FUzqVCpQebshtQxEE5uA9IAZ5CwR18tNMWvFfX74ltRxu0EQxYryIiVpMFRggowFD6DjCk/dDQF06GuMw== X-Received: by 10.112.198.198 with SMTP id je6mr715822lbc.140.1463497474515; Tue, 17 May 2016 08:04:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.163.162 with HTTP; Tue, 17 May 2016 08:04:14 -0700 (PDT) In-Reply-To: References: <447486273.2854797.1463416989177.JavaMail.yahoo.ref@mail.yahoo.com> <447486273.2854797.1463416989177.JavaMail.yahoo@mail.yahoo.com> <1359756715.3177291.1463451985579.JavaMail.yahoo@mail.yahoo.com> From: Robert Metzger Date: Tue, 17 May 2016 17:04:14 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: remote debugging To: "dev@flink.apache.org" Content-Type: multipart/alternative; boundary=001a11c24182192a7105330b0f63 archived-at: Tue, 17 May 2016 15:04:38 -0000 --001a11c24182192a7105330b0f63 Content-Type: text/plain; charset=UTF-8 Can you give me your wiki user id, then I can give you permissions. On Tue, May 17, 2016 at 3:56 PM, Flavio Pompermaier wrote: > No I can't edit that page :( > > On Tue, May 17, 2016 at 3:46 PM, Stefano Baghino < > stefano.baghino@radicalbit.io> wrote: > > > Thanks Flavio, > > > > perhaps it would be a nice addition to the Wiki page, would you care to > > contribute your suggestion? :) > > > > On Tue, May 17, 2016 at 3:22 PM, Flavio Pompermaier < > pompermaier@okkam.it> > > wrote: > > > > > Hi to all, > > > > > > for debugging Flink from Eclipse this is what you have to do: > > > > > > 1. go to 'Run' -> 'Debug configurations...' > > > 2. Create a new 'Remote Java Application' > > > 3. In the 'Connect' tab choose: > > > 1. the project to debug > > > 2. Connection type 'Standard (Socket Attach)' > > > 3. Connection properties *target.host.name-or-ip*/*5005* (change > > > *target.host.name-or-ip > > > properly...)* > > > 4. (Optional) If you see the error 'Multiple launchers available' > > > because you have bot Eclipse and scala debuggers click on Select > > one > > > and > > > select the right one (e.g. Eclipse JDT Launcher) > > > > > > Unofrtunately remote debugging is not possible with Flink UDF (or at > > least > > > I didn't manage to debug it from Eclipse). > > > > > > Best, > > > Flavio > > > > > > On Tue, May 17, 2016 at 11:24 AM, Stephan Ewen > 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 > > > --001a11c24182192a7105330b0f63--