Skip to content

Latest commit

 

History

History
105 lines (71 loc) · 2.92 KB

File metadata and controls

105 lines (71 loc) · 2.92 KB

First steps

After going through the getting_started/installation.adoc section and having installed all the operators, you deploy a NiFi cluster and the required dependencies. Afterward you can verify that it works by querying the REST API.

Setup

We are going to install a NiFi cluster by applying a manifest file. The operators create the resources according to the manifests.

The NiFi cluster requires authentication. Create a set of credentials for this purpose:

link:example$getting_started/getting_started.sh[role=include]

Afterwards create a NiFi instance:

link:example$getting_started/getting_started.sh[role=include]

Verify that it works

First, make sure all pods are ready:

link:example$getting_started/getting_started.sh[role=include]

Then make sure the StatefulSets are ready:

kubectl get statefulset

The output should show all pods ready:

NAME                                 READY   AGE
broken-nifi-node-default             2/2     5m
simple-zk-server-default             3/3     7m

Congratulations! You successfully created your first NiFi cluster!

Access the NiFi web interface

You can retrieve the URL for the NiFi cluster web interface via stackablectl or kubectl.

stackablectl

Use the service command of stackablectl to get a list of all available endpoints:

stackablectl stacklet list

which should return something like this:

 PRODUCT    NAME         NAMESPACE  ENDPOINTS                           CONDITIONS
 nifi       broken-nifi  default    node-https https://172.18.0.2:30528 Available, Reconciling, Running

You can also use the json output and parse the endpoint:

link:example$getting_started/getting_started.sh[role=include]

Then connect to https://172.18.0.2:30528/nifi and you should see the NiFi web login. After providing the username admin and password admin you are redirected to the NiFi web interface.

nifi web ui

Via kubectl

You can also extract the endpoint from the Listener status via kubectl:

link:example$getting_started/getting_started.sh[role=include]

should output a URL to connect to the NiFi web interface:

NiFi URL: https://172.18.0.2:30528

Then connect to https://172.18.0.2:30528/nifi and you should see the NiFi web login. After providing the username admin and password admin you are redirected to the NiFi web interface.

What’s next

Have a look at the usage_guide/index.adoc page to find out more about the features of the NiFi Operator.