【问题标题】:How to launch Remote debug for Apache Zeppelin?如何为 Apache Zeppelin 启动远程调试?
【发布时间】:2017-01-10 02:33:23
【问题描述】:

我正在尝试使用 zeppelin 进行远程调试。我在 /etc/zeppelin/conf/zeppelin-env.sh 中添加了以下内容:

export ZEPPELIN_MEM="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8111

还在 IntelliJ 中创建了远程调试,我给出了运行远程 JVM 的命令行参数:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8111

当我尝试使用以下命令启动 zeppelin 服务器时:

 sudo -u zeppelin /usr/lib/zeppelin/bin/zeppelin-daemon.sh restart

它显示:

Zeppelin stop [ OK ]
Zeppelin start [ OK ]

但是当我尝试通过 ssh 隧道(在 mac 上)启动 zeppelin 时:

ssh -i ec2-key-pair.pem -N -L 8058:localhost:8089 hadoop@ec2-34-109-123-233.compute-1.amazonaws.com

它显示:

channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused

在 IntelliJ 中:

10:04 PM    Error running Remote: Unable to open debugger port (localhost:8111): java.io.IOException "handshake failed - connection prematurally closed"

谁能告诉我我在这里做错了什么?

【问题讨论】:

  • 您不应该使用8058:localhost:8111 吗?我的意思是你不需要创建到调试端口的隧道吗?

标签: macos intellij-idea apache-spark remote-debugging apache-zeppelin


【解决方案1】:

您在zeppelin-env.sh 中添加的行尾缺少双引号"

【讨论】:

    猜你喜欢
    • 2015-12-25
    • 2018-08-25
    • 2021-05-03
    • 1970-01-01
    • 2011-10-22
    • 2014-11-09
    • 1970-01-01
    • 2013-10-30
    • 2015-12-11
    相关资源
    最近更新 更多