Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Nifi - How to use a unix variable ?

avatar
New Member

Hi,

I would like to know if it is possible to use a Linux variable in Nifi as a value for a property in a Processor for example, so I could point a changing path for input directories, without having to change it in nifi.

Is it possible to do the same thing with a Variable that would contain multiple paths ?

1 ACCEPTED SOLUTION

avatar
New Member

Ok I found my answer, this is explained in the expression language guide, even if it don't work on my computer for an unknown reason (I can use a java variable defined in the boostrap.conf file through the expression language, but not an environment variable ...)

View solution in original post

2 REPLIES 2

avatar

Hi @François Robard,

You may find interesting this article:

https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua....

It supposes that the properties you are thinking about in the processors you use are supporting expression language.

avatar
New Member

Ok I found my answer, this is explained in the expression language guide, even if it don't work on my computer for an unknown reason (I can use a java variable defined in the boostrap.conf file through the expression language, but not an environment variable ...)