You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Sargrad (Jira)" <ji...@apache.org> on 2019/09/11 13:06:00 UTC

[jira] [Comment Edited] (NIFI-6327) Enhance NIFI Developer documentation to assist in developing NIFI in IDE

    [ https://issues.apache.org/jira/browse/NIFI-6327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16927539#comment-16927539 ] 

David Sargrad edited comment on NIFI-6327 at 9/11/19 1:05 PM:
--------------------------------------------------------------

I'm having a fair amount of success with single step debugging in my custom nifi processors. I use the remote debugging option to connect to the instance of NiFi that I've built from source. 

 

 

As you see I can then set a breakpoint right at the point where the server is started.

!image-2019-09-11-08-58-20-082.png!

 

II am struggling to find out the proper way to load my NAR file into my intellij project.

 

I've tried to use the Project Structure Settings as follows. I add another library and then browse to my custom nifi project.

In the following picture I've browsed to the trunk of "consume_solace_text"

!image-2019-09-11-09-00-29-639.png!

 

 

 

 

This sort of seems to work, but intellij seems to get confused by the .class and source files in that project. I am still able to single-step debug, but I sometimes have to unload and reload the project..

 

Is there a cleaner way for me to point to the "nar" file that contains my built custom processor

 

 

!image-2019-09-11-09-05-05-837.png!

 


was (Author: dsargrad):
I'm having a fair amount of success with single step debugging in my custom nifi processors. I use the remote debugging option to connect to the instance of NiFi that I've built from source. 

 

 

As you see I can then set a breakpoint right at the point where the server is started.

!image-2019-09-11-08-58-20-082.png!

 

II am struggling to find out the proper way to load my NAR file into my intellij project.

 

I've tried to use the Project Structure Settings as follows. I add another library and then browse to my custom nifi project.

In the following picture I've browsed to the trunk of "consume_solace_text"

!image-2019-09-11-09-00-29-639.png!

 

 

 

 

This sort of seems to work, but intellij seems to get confused by the .class and source files in that project. I am still able to single-step debug, but I sometimes have to unload and reload the project..

 

Is there a cleaner way for me to point to the "nar" file that contains my built custom processor

 

> Enhance NIFI Developer documentation to assist in developing NIFI in IDE
> ------------------------------------------------------------------------
>
>                 Key: NIFI-6327
>                 URL: https://issues.apache.org/jira/browse/NIFI-6327
>             Project: Apache NiFi
>          Issue Type: Wish
>          Components: Core Framework
>    Affects Versions: 1.9.2
>         Environment: LINUX: Centos 7
> ECLIPSE: Oxygen
>            Reporter: David Sargrad
>            Priority: Major
>         Attachments: image-2019-05-29-08-59-30-173.png, image-2019-05-29-08-59-59-849.png, image-2019-05-29-09-00-39-263.png, image-2019-05-29-09-01-47-311.png, image-2019-05-29-09-04-24-313.png, image-2019-05-29-09-06-00-609.png, image-2019-05-31-07-29-48-733.png, image-2019-05-31-07-30-09-097.png, image-2019-05-31-07-32-03-067.png, image-2019-05-31-11-13-01-963.png, image-2019-05-31-11-14-01-380.png, image-2019-05-31-11-33-50-040.png, image-2019-05-31-11-34-48-219.png, image-2019-05-31-11-36-08-343.png, image-2019-06-01-09-19-46-853.png, image-2019-06-01-09-32-35-143.png, image-2019-06-01-09-34-28-359.png, image-2019-06-01-09-35-28-483.png, image-2019-06-01-09-40-38-299.png, image-2019-06-01-09-42-13-371.png, image-2019-06-01-09-50-46-652.png, image-2019-06-01-10-08-35-334.png, image-2019-06-01-10-19-30-506.png, image-2019-06-01-10-20-04-869.png, image-2019-09-11-08-58-20-082.png, image-2019-09-11-09-00-29-639.png, image-2019-09-11-09-05-05-837.png
>
>
> I followed the following instructions to clone and build NIFI:
> [https://nifi.apache.org/quickstart.html]
> I've successfully built the system, using maven.
>  
> !image-2019-05-29-09-01-47-311.png!
>  
> However its not at all clear how to develop and run the system in an IDE such as eclipse, or a "recommended IDE".
> Currently I'm trying to get the system up and running in eclipse. 
>  
> However I'm seeing many problems (see image below). I'm guessing all of these can be solved with a simple set of configuration commands. 
> Ultimately adding such details to the documentation would be useful. For now, I'd appreciate if someone can help with the configuration I am missing.
>  
>   !image-2019-05-29-09-00-39-263.png!
>  
> If I click on one of the failed projects, I see the following error.
>  
> !image-2019-05-29-09-04-24-313.png!
>  
> !image-2019-05-29-09-06-00-609.png!
>  
> I've also noticed that many of the pom files show up with an error. The error is seen below:
> !image-2019-05-31-07-29-48-733.png!
>  
> !image-2019-05-31-07-30-09-097.png!
> This error shows up on the "parent" tag
> !image-2019-05-31-07-32-03-067.png!
>  
> I am using the following version of eclipse, and maven
>  
>   !image-2019-05-29-08-59-59-849.png!
>  
> !image-2019-05-29-08-59-30-173.png!



--
This message was sent by Atlassian Jira
(v8.3.2#803003)