You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Rick Braddy <rb...@softnas.com> on 2015/09/01 01:07:47 UTC

Adding new processor to standard bundle, not showing in UI

Hi,

I'm developing a new processor that I want to test alongside the standard processors (like GetFile).  I have added the new .java file and it's compiling just fine; however, it's not showing up in the processor list of the GUI.

The new processor has been added to:

~/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/META-INF/services/ org.apache.nifi.processor.Processor

And the entire project was rebuilt using "mvn -T C2.0 clean install", then installed in the runtime tree using "tar xvfz..." (with Nifi service stopped), then restarted Nifi... but still my new processor is not showing up in the list.

What am I missing?

Rick

P.S.  I realize I can also build a separate NAR bundle, but was trying this as a first step, before building my own processor bundle.






RE: Adding new processor to standard bundle, not showing in UI

Posted by Rick Braddy <rb...@softnas.com>.
Touchdown!  Deleting the nars directory resolved it.

Thanks Bryan!
Rick

-----Original Message-----
From: Bryan Bende [mailto:bbende@gmail.com] 
Sent: Monday, August 31, 2015 4:34 PM
To: dev@nifi.apache.org
Subject: Re: Adding new processor to standard bundle, not showing in UI

Rick,

Everything you described sounds like the correct approach. One thing to try, in the directory where you have nifi installed, there should be a work directory which has a nar sub-directory... you could try stopping nifi, deleting that nar directory, and starting again.

That directory contains expanded versions of all the nars, so since you were installing on top of an existing installation, it is possible that it is still running the previous version without your new processor. If nifi starts and that directory isn't there, it will re-expand all the nars.

Let us know if it still doesn't work after that.

-Bryan

On Mon, Aug 31, 2015 at 7:07 PM, Rick Braddy <rb...@softnas.com> wrote:

> Hi,
>
> I'm developing a new processor that I want to test alongside the 
> standard processors (like GetFile).  I have added the new .java file 
> and it's compiling just fine; however, it's not showing up in the 
> processor list of the GUI.
>
> The new processor has been added to:
>
> ~/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/
> src/main/resources/META-INF/services/
> org.apache.nifi.processor.Processor
>
> And the entire project was rebuilt using "mvn -T C2.0 clean install", 
> then installed in the runtime tree using "tar xvfz..." (with Nifi 
> service stopped), then restarted Nifi... but still my new processor is 
> not showing up in the list.
>
> What am I missing?
>
> Rick
>
> P.S.  I realize I can also build a separate NAR bundle, but was trying 
> this as a first step, before building my own processor bundle.
>
>
>
>
>
>

Re: Adding new processor to standard bundle, not showing in UI

Posted by Bryan Bende <bb...@gmail.com>.
Rick,

Everything you described sounds like the correct approach. One thing to
try, in the directory where you have nifi installed, there should be a work
directory which has a nar sub-directory... you could try stopping nifi,
deleting that nar directory, and starting again.

That directory contains expanded versions of all the nars, so since you
were installing on top of an existing installation, it is possible that it
is still running the previous version without your new processor. If nifi
starts and that directory isn't there, it will re-expand all the nars.

Let us know if it still doesn't work after that.

-Bryan

On Mon, Aug 31, 2015 at 7:07 PM, Rick Braddy <rb...@softnas.com> wrote:

> Hi,
>
> I'm developing a new processor that I want to test alongside the standard
> processors (like GetFile).  I have added the new .java file and it's
> compiling just fine; however, it's not showing up in the processor list of
> the GUI.
>
> The new processor has been added to:
>
> ~/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/META-INF/services/
> org.apache.nifi.processor.Processor
>
> And the entire project was rebuilt using "mvn -T C2.0 clean install", then
> installed in the runtime tree using "tar xvfz..." (with Nifi service
> stopped), then restarted Nifi... but still my new processor is not showing
> up in the list.
>
> What am I missing?
>
> Rick
>
> P.S.  I realize I can also build a separate NAR bundle, but was trying
> this as a first step, before building my own processor bundle.
>
>
>
>
>
>