You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by Fazlan Nazeem <fa...@wso2.com> on 2015/09/28 13:16:34 UTC

Zeppelin running in debug mode

Hi,

   Can Zeppelin be run in debug mode so that I can remotely debug the code
   through intelliJ? If so can someone help me out with the steps?

-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazlann@wso2.com

Re: Zeppelin running in debug mode

Posted by Fazlan Nazeem <fa...@wso2.com>.
Hi Jonathan,

When I do that, and run a code in the notebook using any interpreter I get
the following error. But my IDE remote debugger has successfully connected
to the socket.

java.net.ConnectException: Connection refused at
java.net.PlainSocketImpl.socketConnect(Native Method) at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at
java.net.Socket.connect(Socket.java:579) at
org.apache.thrift.transport.TSocket.open(TSocket.java:182) at
org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:51)
at
org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:37)
at
org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:60)
at
org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
at
org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at
org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.getClient(RemoteInterpreterProcess.java:139)
at
org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:266)
at
org.apache.zeppelin.interpreter.LazyOpenInterpreter.getFormType(LazyOpenInterpreter.java:104)
at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:197) at
org.apache.zeppelin.scheduler.Job.run(Job.java:170) at
org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:304)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

On Mon, Sep 28, 2015 at 10:49 PM, Jonathan Kelly <jo...@gmail.com>
wrote:

> That should be possible, but how you do it might depend upon whether you
> want to debug Zeppelin UI/server code or Zeppelin Spark interpreter code.
> Then again, the same environment variable (ZEPPELIN_JAVA_OPTS is I think
> what you want) might affect both anyway. What happens if you set
> ZEPPELIN_JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044" in
> zeppelin-env.sh then restart the server?
>
> BTW, all three of the messages you sent around this time were sent to my
> Gmail spam folder with this message: "*Why is this message in Spam?* It
> has a from address in wso2.com but has failed wso2.com's required tests
> for authentication."
>
> ~ Jonathan
>
> On Mon, Sep 28, 2015 at 4:16 AM, Fazlan Nazeem <fa...@wso2.com> wrote:
>
>> Hi,
>>
>>    Can Zeppelin be run in debug mode so that I can remotely debug the code
>>    through intelliJ? If so can someone help me out with the steps?
>>
>> --
>> Thanks & Regards,
>>
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazlann@wso2.com
>>
>
>


-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazlann@wso2.com

Re: Zeppelin running in debug mode

Posted by Jonathan Kelly <jo...@gmail.com>.
That should be possible, but how you do it might depend upon whether you
want to debug Zeppelin UI/server code or Zeppelin Spark interpreter code.
Then again, the same environment variable (ZEPPELIN_JAVA_OPTS is I think
what you want) might affect both anyway. What happens if you set
ZEPPELIN_JAVA_OPTS="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044" in
zeppelin-env.sh then restart the server?

BTW, all three of the messages you sent around this time were sent to my
Gmail spam folder with this message: "*Why is this message in Spam?* It has
a from address in wso2.com but has failed wso2.com's required tests for
authentication."

~ Jonathan

On Mon, Sep 28, 2015 at 4:16 AM, Fazlan Nazeem <fa...@wso2.com> wrote:

> Hi,
>
>    Can Zeppelin be run in debug mode so that I can remotely debug the code
>    through intelliJ? If so can someone help me out with the steps?
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazlann@wso2.com
>