Re: nifi configuration file for process group

2016-11-22 Thread balacode63
Thanks for your detailed reply  Joseph Percivalllinkedin.
Yes Im using multiple http processors. As you suggested , I will try to
explore  Getfile and extracttext processors.

Sorry for the late reply.

Thanks Again.




--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/nifi-configuration-file-for-process-group-tp13908p13945.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.


Re: nifi configuration file for process group

2016-11-17 Thread Yolanda Davis
Bala,

Let me add to the below in saying that in the current implementation of
custom properties, variables are bound at startup. So if the custom
property file is changed then nifi would need to be restarted. However
there are jiras and discussion around improving this in the future.

Yolanda

On Thu, Nov 17, 2016 at 10:42 AM, Yolanda Davis 
wrote:

> Hello Bala,
>
> If you are using a processor that supports expression language for the IP
> address property you can configure NiFi to use a variable within a custom
> property file that you define.  Once that is set you can refer to the
> custom variable in the IP field instead of the raw IP value.  For more
> information on how to set that up here is a link to the admin guide:
>
> https://nifi.apache.org/docs/nifi-docs/html/administration-
> guide.html#custom_properties
>
> I hope this is helpful.  Please let me know if you have any questions.
>
> Thanks,
>
> Yolanda
>
> On Thu, Nov 17, 2016 at 7:21 AM, balacode63 
> wrote:
>
>> Hi all,
>>
>> My use case is,
>>
>> 1)Process group A is having 10 processors which uses same ip address
>> ex(192.168.1.1) for some processing. ex http post
>> 2) if this ip address is changed, i need to update all the processors.
>> 3) is there any way i can handle this in a configuration file in nifi?
>> ex: this configuration data will be used across different processors
>>
>> Please guide me
>> Thanks,
>> Bala
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://apache-nifi-developer-l
>> ist.39713.n7.nabble.com/nifi-configuration-file-for-process-
>> group-tp13908.html
>> Sent from the Apache NiFi Developer List mailing list archive at
>> Nabble.com.
>>
>
>
>
> --
> --
> yolanda.m.da...@gmail.com
> @YolandaMDavis
>
>


-- 
--
yolanda.m.da...@gmail.com
@YolandaMDavis


Re: nifi configuration file for process group

2016-11-17 Thread Yolanda Davis
Hello Bala,

If you are using a processor that supports expression language for the IP
address property you can configure NiFi to use a variable within a custom
property file that you define.  Once that is set you can refer to the
custom variable in the IP field instead of the raw IP value.  For more
information on how to set that up here is a link to the admin guide:

https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties

I hope this is helpful.  Please let me know if you have any questions.

Thanks,

Yolanda

On Thu, Nov 17, 2016 at 7:21 AM, balacode63 
wrote:

> Hi all,
>
> My use case is,
>
> 1)Process group A is having 10 processors which uses same ip address
> ex(192.168.1.1) for some processing. ex http post
> 2) if this ip address is changed, i need to update all the processors.
> 3) is there any way i can handle this in a configuration file in nifi?
> ex: this configuration data will be used across different processors
>
> Please guide me
> Thanks,
> Bala
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/nifi-configuration-file-for-
> process-group-tp13908.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>



-- 
--
yolanda.m.da...@gmail.com
@YolandaMDavis


Re: nifi configuration file for process group

2016-11-17 Thread Joe Percivall
Hello Bala,
Are all your processors HTTP processors? Which processors are you trying to use 
to grab data from the IP? You may want to think about whether you could use 
just a couple processors and update them by hand.
If you have to have many processors that hit the same IP, they all can accept 
source connections and they all allow Expression Language, then you can use 
"GetFile" in order to grab a file with the IP you need. Then ExtractText to put 
the IP address in an attribute and lastly use the attribute with the IP in an 
Expression Language expression. You'll be able to modify the input file 
whenever you need to update the IP and your processors will automatically use 
the new IP.
Joe
- - - - - - Joseph Percivalllinkedin.com/in/Percivalle: joeperciv...@yahoo.com
 

On Thursday, November 17, 2016 8:51 AM, balacode63 
 wrote:
 

 Hi all,

My use case is,

1)Process group A is having 10 processors which uses same ip address
ex(192.168.1.1) for some processing. ex http post
2) if this ip address is changed, i need to update all the processors.
3) is there any way i can handle this in a configuration file in nifi?
    ex: this configuration data will be used across different processors

Please guide me
Thanks,
Bala









--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/nifi-configuration-file-for-process-group-tp13908.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.