To validate your draft, start a test session. This provisions an Apache NiFi cluster
where you can test your draft.
Starting a Test Session provisions NiFi resources, acting
like a development sandbox for a particular draft. It allows you to work with live data
to validate your data flow logic while updating your draft. You can suspend a test
session any time and change the configuration of the NiFi cluster then resume testing
with the updated configuration.
Click the
start a test session
link
in the banner on top of the
Canvas.
Review the suggested NiFi configuration. You do not need to change
anything.
Click the
Start Test
Session
button.
Test Session status Initializing
Test Session... appears on top of the page.
Wait for the status to change to Active Test Session.
This
can
take several minutes.
Go to
Flow Options > Services to enable Controller Services.
Select a service you want to enable, then click
the
Enable
Service and Referencing
Components
icon.
This option does not only enable the controller service, but also any
component that references it. This way, you do not need to enable the component
separately to run the test session. In the context of this tutorial, enabling
the
AvroReader_Recent_Changes
controller service will also
enable the
Filter
Edits,
Route
on Content Size, and
Merge
Edit
Events
processors as well.
Repeat this step for all Controller Services.
Click the
Flow
Designer
link in the breadcrumbs on
the
top
of the page to return to the
Flow
Design
canvas.
Start the remaining inactive processors.
Start the Get Recent Wikipedia Changes processor
by selecting it on the canvas, then
clicking the
[Start]
icon
in the component details pane.
Start the Write "Added Content" Events To File
processor by selecting it on the canvas, then
clicking the
[Start]
icon
in the component details pane.
Start the Write "Removed Content" Events To File
processor by selecting it on the canvas, then
clicking the
[Start]
icon
in the component details pane.
All other components were auto-started when you selected the
Enable Service and Referencing Components option in
the Flow Options > Services view.
Observe your first draft flow processing data.
On the Flow Designer canvas you can observe statistics on
your processors change as they consume and process data from Wikipedia. You can
also observe one or more blue Notification Pills,
providing information about the current task.