Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 4

...

Sr.No

User

Usage Instructions

1.

Developers who are looking to onboard their mS

·        Access the Nifi  Web UI url provided to you

·        Follow steps  2.b to 2.d

·        You should be able to see your microservices in the Nifi Web UI by clicking and dragging ‘Processor’ on the canvas, and searching for the name of the microservice/component/processor.

2.

Designers who are building the flows through UI and triggering distribution

·        Access the Nifi  Web UI url provided to you

·        Follow step steps 3 to , right upto the end of the document

3.

Infrastructure/ Admins who want to stand up DCAE Mod and validate it

·        Follow start to the end

...

The Nifi Registry UI (http://<hostname>/nifi-registry ) should now load if you don’t see errors with the Nifi Registry docker container logs (do docker logs modstandup_nifi-registry_1) and it is now able to find the postgresql database (which is now running as a separate process).

Image RemovedImage Added

At this point, you can create a new bucket using the wrench tool in the UI and let’s say we name this new-bucket

Now let’s access the Nifi (DCAE designer) UI - http://<hostname>/nifi

Image RemovedImage Added

a. Get the artifacts to test and onboard.

...

To start creating flows, we need to create a process group first. The name of the process group will be the name of the flow.

Image RemovedImage Added

a. Configure Nifi Registry url

Next check Nifi settings by selecting the Hamburger button in the Nifi UI. It should lead you to the Nifi Settings screen

Image RemovedImage Added

Add a registry client. The Url will be as shown for the current docker compose files. This url is on the internal docker network. This might change when not using docker compose.


Image RemovedImage Added

Now enter the process group and drag and drop components that we need into the Process group.


Image RemovedImage Added


If the Nifi registry linking worked, you should see the “Import” button when you try to add a Processor or Process group to the Nifi canvas, like so-

Image RemovedImage Added

By clicking on the import button, we can import already created saved and version controlled flows from the Nifi registry, if they are present.

Image RemovedImage Added

We can save created flows by version controlling them like so

Image RemovedImage Added

Ideally you would name the flow and process group the same, because functionally they are similar.

Image RemovedImage Added

When the flow is checked in, the bar at the bottom shows a green checkmark

Image RemovedImage Added


Even if you move around a component, it is recognized as a change, and it will have to recommitted.

...

ModelB1Etl connects to ModelB1.

Image RemovedImage Added

Along the way you need to also provide topic names in the settings section. These can be arbitrary names.

Image RemovedImage Added


ModelB1 connects to ModelB1Reporting

Image RemovedImage AddedImage Removed


Image Added

At this point, in this design, we will drag and drop an Input port and call it ‘ves’ which will be a representation for incoming VES collector data. VES data source connects to ModelB1ETL

Image RemovedImage AddedImage Removed


Image Added


Image RemovedImage Added

To recap, see how ves input port connects to ModelB1Etl connects to ModelB1 which connects to ModelB1Reporting. Look at the connection relationships. Currently there is no way to validate these relationships. Notice how it is required to name the topics by going to Settings.

The complete flow after joining our components looks like so


Image RemovedImage Added


c) Add distribution target which will be the runtime api url

Once we have the desired flow checked in, we can go ahead and set the distribution target in the controller settings

Image RemovedImage AddedImage Removed


Image Added


d. Submit/ Distribute the flow:

Once your flow is complete and saved in the Nifi registry, you can choose to submit it for distribution.

Image RemovedImage Added

If the flow was submitted successfully to the runtime api, you should get a pop up a success message like so -

Image RemovedImage Added

At this step, the design was packaged and sent to Runtime api.

...

You should see the generated artifact/ blueprint in the DCAE inventory. The name for each component will be appended by the flow name followed by underscore followed by the component’s name.


Image RemovedImage Added

These blueprints can also be seen in the DCAE Inventory dashboard.