help with adding a process

classic Classic list List threaded Threaded
4 messages Options
plj
Reply | Threaded
Open this post in threaded view
|

help with adding a process

plj
Howdy,

  I'm trying to add my own process to NiFi.  So far I have written the process and it compiles.  What I want now is actually see my process show up in NiFis list web GUI of processors.

What I did, I tried to follow the Developers Guild modified by what the code looks like (I sort of used nifi-geo-bundle as an example.  So in:

root/nifi-nar-bundles

I added
     nifi-image-bundles
     |---pom.xml
     |--nifi-image-processor
            |--src
                  |-- main
                        |--java
                              |-- org.mitre.nitfimages
            |--resources
                   |...
      |--nifi-images-nar
             |--pom.xml

So it all compiles in maven but I don't know what I have to do to make my process show up.  Clearly I'm missing a step or 3 to get my stuff added.  Can you please enlighten me?

thanks in advance,

Pat
Reply | Threaded
Open this post in threaded view
|

Re: help with adding a process

Aldrin Piri
Pat,

As a quick check, did you add the fully qualified package name of your
processor (org.mitre.nitfimages.<Processor Classname>) to the
org.apache.nifi.processor.Processor file within the nifi-image-processors
src/main/resources/META-INF/services directory?  The overall structure
provided seems to be appropriate.

As an aside, if you are creating a bundle for your organization, you may be
better suited creating a separate bundle to include in NiFi releases.  We
have an archetype available to aid in this process, the documentation of
which is available on the NiFi Confluence wiki [1].

[1]
https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Extensions#MavenProjectsforExtensions-MavenProcessorArchetype

On Wed, Aug 26, 2015 at 3:25 PM, plj <[hidden email]> wrote:

> Howdy,
>
>   I'm trying to add my own process to NiFi.  So far I have written the
> process and it compiles.  What I want now is actually see my process show
> up
> in NiFis list web GUI of processors.
>
> What I did, I tried to follow the Developers Guild modified by what the
> code
> looks like (I sort of used nifi-geo-bundle as an example.  So in:
>
> root/nifi-nar-bundles
>
> I added
>      nifi-image-bundles
>      |---pom.xml
>      |--nifi-image-processor
>             |--src
>                   |-- main
>                         |--java
>                               |-- org.mitre.nitfimages
>             |--resources
>                    |...
>       |--nifi-images-nar
>              |--pom.xml
>
> So it all compiles in maven but I don't know what I have to do to make my
> process show up.  Clearly I'm missing a step or 3 to get my stuff added.
> Can you please enlighten me?
>
> thanks in advance,
>
> Pat
>
>
>
>
> --
> View this message in context:
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/help-with-adding-a-process-tp2579.html
> Sent from the Apache NiFi (incubating) Developer List mailing list archive
> at Nabble.com.
>
plj
Reply | Threaded
Open this post in threaded view
|

RE: help with adding a process

plj

I had not set the org.apache.nifi.processor.Processor file but I have now.  No change.

 

Pat

 

From: Aldrin Piri [via Apache NiFi (incubating) Developer List] [mailto:ml-node+[hidden email]]
Sent: Wednesday, August 26, 2015 3:36 PM
To: Jones, Patrick L. <[hidden email]>
Subject: Re: help with adding a process

 

Pat,

As a quick check, did you add the fully qualified package name of your
processor (org.mitre.nitfimages.<Processor Classname>) to the
org.apache.nifi.processor.Processor file within the nifi-image-processors
src/main/resources/META-INF/services directory?  The overall structure
provided seems to be appropriate.

As an aside, if you are creating a bundle for your organization, you may be
better suited creating a separate bundle to include in NiFi releases.  We
have an archetype available to aid in this process, the documentation of
which is available on the NiFi Confluence wiki [1].

[1]
<a href="https://cwiki.apache.org/confluence/display/NIFI/Maven&#43;Projects&#43;for&#43;Extensions#MavenProjectsforExtensions-MavenProcessorArchetype" target="_top">https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Extensions#MavenProjectsforExtensions-MavenProcessorArchetype

On Wed, Aug 26, 2015 at 3:25 PM, plj <[hidden email]> wrote:


> Howdy,
>
>   I'm trying to add my own process to NiFi.  So far I have written the
> process and it compiles.  What I want now is actually see my process show
> up
> in NiFis list web GUI of processors.
>
> What I did, I tried to follow the Developers Guild modified by what the
> code
> looks like (I sort of used nifi-geo-bundle as an example.  So in:
>
> root/nifi-nar-bundles
>
> I added
>      nifi-image-bundles
>      |---pom.xml
>      |--nifi-image-processor
>             |--src
>                   |-- main
>                         |--java
>                               |-- org.mitre.nitfimages
>             |--resources
>                    |...
>       |--nifi-images-nar
>              |--pom.xml
>
> So it all compiles in maven but I don't know what I have to do to make my
> process show up.  Clearly I'm missing a step or 3 to get my stuff added.
> Can you please enlighten me?
>
> thanks in advance,
>
> Pat
>
>
>
>
> --
> View this message in context:
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/help-with-adding-a-process-tp2579.html
> Sent from the Apache NiFi (incubating) Developer List mailing list archive
> at Nabble.com.
>

 


If you reply to this email, your message will be added to the discussion below:

http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/help-with-adding-a-process-tp2579p2580.html

To unsubscribe from help with adding a process, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: help with adding a process

Bryan Bende
Pat,

If you are developing your bundle with in the nifi source code, you also
need to update the nifi-assembly/pom.xml to include your new nar in the
final package that gets built.

You can check if it is included after doing a full build, and checking the
lib directory (located wherever you are running nifi from) and seeing if
your image nar is in there.

-Bryan

On Wed, Aug 26, 2015 at 4:02 PM, plj <[hidden email]> wrote:

> I had not set the org.apache.nifi.processor.Processor file but I have
> now.  No change.
>
> Pat
>
> From: Aldrin Piri [via Apache NiFi (incubating) Developer List] [mailto:
> [hidden email]]
> Sent: Wednesday, August 26, 2015 3:36 PM
> To: Jones, Patrick L. <[hidden email]>
> Subject: Re: help with adding a process
>
> Pat,
>
> As a quick check, did you add the fully qualified package name of your
> processor (org.mitre.nitfimages.<Processor Classname>) to the
> org.apache.nifi.processor.Processor file within the nifi-image-processors
> src/main/resources/META-INF/services directory?  The overall structure
> provided seems to be appropriate.
>
> As an aside, if you are creating a bundle for your organization, you may be
> better suited creating a separate bundle to include in NiFi releases.  We
> have an archetype available to aid in this process, the documentation of
> which is available on the NiFi Confluence wiki [1].
>
> [1]
>
> https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Extensions#MavenProjectsforExtensions-MavenProcessorArchetype
>
> On Wed, Aug 26, 2015 at 3:25 PM, plj <[hidden
> email]</user/SendEmail.jtp?type=node&node=2580&i=0>> wrote:
>
> > Howdy,
> >
> >   I'm trying to add my own process to NiFi.  So far I have written the
> > process and it compiles.  What I want now is actually see my process show
> > up
> > in NiFis list web GUI of processors.
> >
> > What I did, I tried to follow the Developers Guild modified by what the
> > code
> > looks like (I sort of used nifi-geo-bundle as an example.  So in:
> >
> > root/nifi-nar-bundles
> >
> > I added
> >      nifi-image-bundles
> >      |---pom.xml
> >      |--nifi-image-processor
> >             |--src
> >                   |-- main
> >                         |--java
> >                               |-- org.mitre.nitfimages
> >             |--resources
> >                    |...
> >       |--nifi-images-nar
> >              |--pom.xml
> >
> > So it all compiles in maven but I don't know what I have to do to make my
> > process show up.  Clearly I'm missing a step or 3 to get my stuff added.
> > Can you please enlighten me?
> >
> > thanks in advance,
> >
> > Pat
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/help-with-adding-a-process-tp2579.html
> > Sent from the Apache NiFi (incubating) Developer List mailing list
> archive
> > at Nabble.com.
> >
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/help-with-adding-a-process-tp2579p2580.html
> To unsubscribe from help with adding a process, click here<
> >.
> NAML<
>
http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
>
>
>
>
> --
> View this message in context:
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/help-with-adding-a-process-tp2579p2584.html
> Sent from the Apache NiFi (incubating) Developer List mailing list archive
> at Nabble.com.
>