How to debug Apache Storm in Eclipse?

后端 未结 2 1938
臣服心动
臣服心动 2020-12-17 23:50

We can generate storm jar using particular parameter. However, if we need to debug this project (actually a far) locally as well as remotely?

If it is simple jar, th

2条回答
  •  Happy的楠姐
    2020-12-18 00:19

    To enable debugging across the various supervisor VMs, all you have to do is edit the storm.yaml file and update the worker.childopts entry to something like:

    worker.childopts: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5%ID%"

    If you had your supervisors on ports 6700,6701,6702 etc., this would create a debug port on 56700,56701,56702 etc.

提交回复
热议问题