Jess
Jess

Reputation: 8700

Set default processor properties in NIFI

I'd like to set the default value of PutS3Object's EndpointOverride property to a MinIO cluster.

Is it possible in NIFI to set default values for certain processor properties?

Upvotes: 0

Views: 566

Answers (2)

maxime G
maxime G

Reputation: 1771

It is not possible when you use a new processor.

You can use template instead.

create a template from a existing processor with default value :

enter image description here

user will be able to use your template with default value :

enter image description here

Upvotes: 1

Dennis Jaheruddin
Dennis Jaheruddin

Reputation: 21563

I suspect the reason this is not available is because it would get complicated very fast when multiple people work in nifi and start to see defaults change without notice.

However, there use of variables may help with this.

You could use the variable registry to define the exact place you want to connect to, and refer to the variable every time instead of putting in the complete URL.

An added benefit would be that it becomes much easier to move flows to a different environment, if you go from dev to prod you probably want to change as little as possible, and variables help with this where defaults could stimulate hardcoding links into every individual processor.

Upvotes: 2

Related Questions