Skip to main content
Raj_B
Gold ⭐️
February 7, 2017
Solved

How to Distinguish Apache NiFi Environments Using nifi.ui.banner.text

Hello,

Just wondering if there is a way to help developers identify in which NiFi UI canvas they are on - Dev, Test, Prod; this is to help prevent developers from accidentally making changes in the wrong environments if they have multiple environments' canvases open; ideally a place like the top left corner where the NiFi logo is would be a good place to identify the environment; I checked the nifi properties file and other than the banner (which is a very small size font) I didn't find any other property where you can have a custom text/image/logo on the canvas. Also, I thought about the Label, but you've to add that inside each process group for it to be useful.

Any ideas on how this can be done?

Thanks.

MattWho
MattWhoAnswer
Titanium ⭐️⭐️⭐️
February 7, 2017
@Raj B

NiFi has an optional property in the nifi.properties file that allows you to place a banner at the top of your canvas:

nifi.ui.banner.text=

This banner remains visible no matter which process group the user is in.

12199-screen-shot-2017-02-07-at-93702-am.png

You could configure a unique banner for each of your environments.

Thanks,

Matt

5 replies

MattWho
Titanium ⭐️⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️⭐️
February 7, 2017
@Raj B

NiFi has an optional property in the nifi.properties file that allows you to place a banner at the top of your canvas:

nifi.ui.banner.text=

This banner remains visible no matter which process group the user is in.

12199-screen-shot-2017-02-07-at-93702-am.png

You could configure a unique banner for each of your environments.

Thanks,

Matt

Translate
Raj_B
Raj_BAuthor
Gold ⭐️
February 7, 2017

thanks @Matt

I was aware of the banner text, but we're actually using it for a Security Disclaimer; is it possible to display disclaimer text on the NiFi login screen before you get to the the canvas; if that's doable then we can use banner text for identifying the environment rather than the disclaimer.

Translate
MattWho
Titanium ⭐️⭐️⭐️
Titanium ⭐️⭐️⭐️
February 7, 2017

@Raj B

Unfortunately not, but I think that being able to customize the login screen with some user defined text is a cool idea. I suggest you create an Apache Jira for that enhancement idea.

https://issues.apache.org/jira/secure/Dashboard.jspa

The only other option is to create a unique label on the canvas of each of your environments. The drawback there is the banner is only visible within the process group it was created and if you template your entire flow, that template would be carried from cluster to cluster and the label would thus need to be updated.

Thanks,

Matt

Translate