Hello

You can certainly group your processors together in the same module.
No need to make different module/directories.  You are free to use
whatever package naming structure you need under there.

When deciding whether to include things in the same nar or not
consider their shared dependencies and if there is value in them be
together (they use the same dependencies) or separate (they use
different ones or are likely to diverge).

Thanks
Joe

On Thu, Apr 14, 2016 at 12:27 PM, Russell Bateman
<russell.bate...@perfectsearchcorp.com> wrote:
> Welcome Idioma...
>
> 1) You'll want to subsume your new processors under deeper Java packages
> (you probably knew that).
>
> 2) In addition to the Java code, you'll add:
> -src
>   -main
>     - resources
>       - META-INF
>         - services
>           - org.apache.nifi.processor.Processor
> containing a list of the package paths to each of your new processors.
>
> Does this help?
>
>
> On 04/14/2016 09:20 AM, idioma wrote:
>>
>> Hi,
>> currently, I have one custom processor + test in a similar folder
>> structure
>> in my IDE (IntelliJ):
>>
>> -CustomProcessors
>>     -nifi-myprocessor-nar
>>     -nifi-myprocessor
>>        -src
>>            -main
>>                -java
>>                    MyProcessor.java
>>        -test
>>            -MyProcessorTest.java
>>
>> I am now in the process to add another processor, what is the best
>> approach?
>> Shall I have 2 new folders for the nar and one containing the actual
>> processor? I would like to generate a basic structure for the processor
>> (as
>> it describes here:
>>
>> https://community.hortonworks.com/articles/4318/build-custom-nifi-processor.html).
>> Is that advisable when adding another custom processor?
>>
>> Thanks,
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-nifi-developer-list.39713.n7.nabble.com/Multiple-nar-custom-processors-advisable-directory-structure-tp9089.html
>> Sent from the Apache NiFi Developer List mailing list archive at
>> Nabble.com.
>
>

Reply via email to