【发布时间】:2015-12-01 00:43:21
【问题描述】:
使用以下问答,我设法在 Apache Storm 集群(本地运行)上通过 eclipse 启用调试。 How to debug Apache Storm in Eclipse?
我的conf/storm.yaml 有以下行可以在工作节点上启用调试:
worker.childopts: "-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"
当我将拓扑提交到storm 以运行(在集群中)时,我可以设置断点并在我的编辑器中查看变量。
但是当我尝试在本地运行它时(在Local Mode),我似乎无法连接(连接被拒绝) - 通过 eclipse。
# I'm using storm crawler, I submit a topology like so:
storm jar target/storm-crawler-core-10.6-SNAPSHOT-jar-with-dependencies.jar \
com.digitalpebble.storm.crawler.CrawlTopology \
-conf crawler-conf.yaml \
-local
# ^ The `-local` runs it in a `LocalCluster`
# If I submit it to my actual cluster (without -local), I can debug it through eclipse.
# View the pastebin for all the output : http://pastebin.com/PEdA7fH0
I have included all the output from the above command to a pastebin. Click here to view it
More information on how storm crawler launches the LocalCluster.
我希望能够在本地模式下进行调试,这样我就可以在命令行中看到输出(当我通过我设置的断点时)并快速进行更改并重新运行,基本上是为了加快我的开发速度流。
在 LocalCluster (Local Mode) 中运行 Apache Storm 时,如何通过 eclipse 调试器调试我的代码?
【问题讨论】:
标签: java eclipse debugging apache-storm