【发布时间】: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