Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create my own template #64

Open
pooja1pathak opened this issue Feb 7, 2022 · 1 comment
Open

Create my own template #64

pooja1pathak opened this issue Feb 7, 2022 · 1 comment

Comments

@pooja1pathak
Copy link
Contributor

Hi Team,

I need to create my own template in draco nifi, for that I have done below changes:

  1. created a template file as nifi-ngsi-resources/docker/templates/text.xml
  2. Added processor as nifi-ngsi-bundle/nifi-ngsi-processors/src/main/java/org/apache/nifi/processors/ngsi/test.java
  3. Added entry for test in nifi-ngsi-bundle/nifi-ngsi-processors/src/main/resources/META-INF/services/org.apache.nifi.processor.Processor

Now, when I create docker image using commad sudo docker build -f ./Dockerfile -t draco . and run this image, a new template for test is showing in GUI of /nifi but when I add it, an error message is shown on GUI : org.apache.nifi.processors.ngsi.test is not known to this NiFi instance.

Please guide me if I am doing anything wrong or missed anything to create and use my own template.

@anmunoz
Copy link
Member

anmunoz commented Feb 21, 2022

Hello,

I think the easiest way to add a new template in Draco is:

  1. Create your flow using the GUI in a Draco instance.
  2. Save this flow as template using the Draco GUI
  3. Download the template and save it in this path nifi-ngsi-resources/docker/templates
  4. Build the image using the docker file as you show in your message.

It is important that you are using the processors with the same version of nifi that you are using for building the docker images, maybe that is why you receive the message that you mention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants