How can I create new flows using Apache Nifi. Is there only one flow?
Also what about authentication? Can different users have different flows?
How can I create new flows using Apache Nifi. Is there only one flow?
Also what about authentication? Can different users have different flows?
There is only one top-level canvas, but you can construct as many logical flows as you like. Typically to organize things process groups are used, so the top-level canvas can have several process groups each representing a logical flow, but not necessarily connected to each other.
In the current version of NiFi users have roles, so if a user is a data flow manager they can see and change any part of the flow, and if they are a monitor role they have read only access. In a future release being worked on right now this will change to more fine grained access control per component. In the model, if there were two process groups on the root canvas, you could give one set of users access to only process group 1 and another set of users access to only process group 2.
How can I create new flows using Apache Nifi. Is there only one flow?
You can create as many flows as you want, however, you can't have 'tabs'. The general consensus is to use Process Groups to separate flows and tidy up the view.
Can different users have different flows?
Not right now, but it is part of their backlog to implement something. Keep an eye out on the Release Notes for more information, or monitor the Dev Mailing list for an upcoming information.
Also what about authentication?
I have set up NiFi to use authentication through LDAP, see the NiFi Docs for more information on how this works and other methods.
Hope this helps!
It has been some time since this thread has opened and newer versions have come out. This below is based off 1.19.1 release.
Yes, there is only 1 logical canvas but if we use Process groups its possible to structure into layers. Providing a very simple example to convey this via screenshots. Scenario : -I need to organize some flows related to Kafka and some related to purely MongoDb and MySql.
[A] I will start with a blank "root canvas" identified as "Ni flow" , see red arrow
[B] I added 4 high level process groups
[C] Now double click the Kafka process group
[D] Nifi will now go into the "Kafka process group" and show me the child process groups. The 2 child groups are "Producer" and "Consumer" Note how the status bar shows at what level I'm at. I'm now 1 level below the "Nifi flow".
[E] Double click the "Producer" process group and now I'm at level 3. Here I have 2 version of the producers - Keyed and Unkeyed
[F]Double click the "unkeyed" processor group and now I have my data flow specific for loading data from json array in a file on disk to a Kafka topic
This was a very simple example to demonstrate the processor group nesting, special care needs to be taken based om your requirements on how you to want to trigger flows, control access to users, maintain versions etc.
© 2022 - 2024 — McMap. All rights reserved.