save variables to template when creating a template

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

save variables to template when creating a template

尹文才
Hi guys, I've been using the new variable registry feature in 1.4.0 and I
like it very much. But when I define a variable in a processor group and
try to create a template out out it, I noticed that the variable I defined
is not included in the template after I import the template to another NIFI
instance. Does anyone know if it's possible to keep the variable with the
template? Thanks.

/Ben
Reply | Threaded
Open this post in threaded view
|

Re: save variables to template when creating a template

Matt Burgess-2
Ben,

The variables are separate from the template by design, this is so you
can provide a variable registry in dev/test and a different one for
production, for example. If you want to keep the variable you would
likely want to transfer the variable registry along with the template
to the other NiFi instance.

Regards,
Matt

On Tue, Oct 10, 2017 at 11:45 PM, 尹文才 <[hidden email]> wrote:
> Hi guys, I've been using the new variable registry feature in 1.4.0 and I
> like it very much. But when I define a variable in a processor group and
> try to create a template out out it, I noticed that the variable I defined
> is not included in the template after I import the template to another NIFI
> instance. Does anyone know if it's possible to keep the variable with the
> template? Thanks.
>
> /Ben
Reply | Threaded
Open this post in threaded view
|

Re: save variables to template when creating a template

尹文才
Thanks Matt, how should I transfer the variable registry, are these
variables saved in a file somewhere?

/Ben

2017-10-12 0:58 GMT+08:00 Matt Burgess <[hidden email]>:

> Ben,
>
> The variables are separate from the template by design, this is so you
> can provide a variable registry in dev/test and a different one for
> production, for example. If you want to keep the variable you would
> likely want to transfer the variable registry along with the template
> to the other NiFi instance.
>
> Regards,
> Matt
>
> On Tue, Oct 10, 2017 at 11:45 PM, 尹文才 <[hidden email]> wrote:
> > Hi guys, I've been using the new variable registry feature in 1.4.0 and I
> > like it very much. But when I define a variable in a processor group and
> > try to create a template out out it, I noticed that the variable I
> defined
> > is not included in the template after I import the template to another
> NIFI
> > instance. Does anyone know if it's possible to keep the variable with the
> > template? Thanks.
> >
> > /Ben
>