一、storm任务远程调试

1. 在yaml文件中添加配置,其中address是要使用的远程机器的端口号

topology.debug: true
topology.worker.childopts: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"

2.提交任务并发布

3.在idea中,依次点击run、edit configurations,点击+选择remote,输入name、command line、host、port和search sources using module‘s classpath,host是任务运行的worker的ip,port与yaml中一致。最后点击apply。

idea的远程调试

 

相关文章:

  • 2022-01-09
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2021-06-30
  • 2021-04-19
相关资源
相似解决方案