How to debug Kylo NiFi processors?

108 views
Skip to first unread message

eagl...@gmail.com

unread,
Oct 16, 2017, 5:16:29 AM10/16/17
to Kylo Community
Hi, All,

I want to do some trouble shooting by debugging Kylo NiFi processors such as GetTableData.

Though I can debug by adding some logs in the processor codes, copy the nar file to the /opt/nifi/data/lib and then restart the NiFi service,
this is very inefficient.

NiFi supports remote debugging, but how to debug Kylo NiFi processor with remote debug or is there any document (or tutorial) about how to debugging Kylo NiFi processors?

Thanks

Boying

Ruslans Uralovs

unread,
Oct 16, 2017, 5:48:14 AM10/16/17
to Kylo Community
Hey Boying

Yes, you can easily debug Nifi and Kylo processors. 
The first thing is to start Nifi in debug mode and then you can attach a debugger to Nifi process. If you want to debug Kylo processors then you need to attach to Nifi from an IDE where Kylo source code is available. Here is a good doc on how to connect to Nifi from IntelliJ, you just need to do it from IDE which has Kylo source code: https://community.hortonworks.com/articles/106931/nifi-debugging-tutorial.html
One other thing to look out for is that you will need to open required debugging port, i.e. if you are running Nifi on remote host or inside a VM or a docker container and connecting to that Nifi process make sure to open/forward the debug port.

eagl...@gmail.com

unread,
Oct 16, 2017, 10:44:13 PM10/16/17
to Kylo Community
Thanks a lot :)
Reply all
Reply to author
Forward
0 new messages