Re: onPropertyModified doesn't seem to work

2018-03-19 Thread Mark Payne
Sivaprasanna,

What package is your processor class in? By default, the logging for the
org.apache.nifi.processors package is set to WARN. I am wondering if you are
simply not seeing the logging because of your logback configuration. I would 
recommend
you instead add a breakpoint and attach to your running nifi instance.

Thanks
-Mark



> On Mar 19, 2018, at 1:03 PM, Sivaprasanna  wrote:
> 
> Hi everyone,
> 
> I'm facing problem getting onPropertyModified() working. Just to test it
> and troubleshoot further, I created a custom processor, the usual
> MyProcessor sample processor. I then added the following:
> 
> @Override
> public void onPropertyModified(PropertyDescriptor descriptor, final
> String oldValue, final String newValue) {
>LOG.info("Property modified for processor " + this.getIdentifier());
>super.onPropertyModified(descriptor, oldValue, newValue);
> }
> 
> And modified onTrigger to generate a string and write it as an output
> flowfile. The processor seems to work. However, when I modify the value for
> the property and restart it, I expect the above log statement to be
> generated, but it is not. Any help is appreciated. Thanks.
> 
> -
> Sivaprasanna



onPropertyModified doesn't seem to work

2018-03-19 Thread Sivaprasanna
Hi everyone,

I'm facing problem getting onPropertyModified() working. Just to test it
and troubleshoot further, I created a custom processor, the usual
MyProcessor sample processor. I then added the following:

@Override
public void onPropertyModified(PropertyDescriptor descriptor, final
String oldValue, final String newValue) {
LOG.info("Property modified for processor " + this.getIdentifier());
super.onPropertyModified(descriptor, oldValue, newValue);
}

And modified onTrigger to generate a string and write it as an output
flowfile. The processor seems to work. However, when I modify the value for
the property and restart it, I expect the above log statement to be
generated, but it is not. Any help is appreciated. Thanks.

-
Sivaprasanna


Re: Not able to add "Max Rows Per Flow File" property in SelectHiveQL

2018-03-19 Thread Sivaprasanna
Max Rows Per Flow File is a property that was introduced fairly recently. I
think it was after NiFi 1.4.0/1.5.0. Since yours is NiFi 1.3, the framework
doesn’t know/understand it. You can try downloading and using NiFi 1.5.0
version of Hive bundle.

On Mon, 19 Mar 2018 at 5:27 PM, Rohit  wrote:

> Hi,
>
>   I am using SelectHiveQL 1.3.0 processor to read data from hive table and
> i
> am trying to add "Max Rows Per Flow File" property in  SelectHiveQL but its
> giving error "Max Rows Per Flow File" is not a supported property. As per
> Nifi notes this is valid property.
>
> SelectHiveQL.png
> <
> http://apache-nifi-developer-list.39713.n7.nabble.com/file/t927/SelectHiveQL.png
> >
> SelectHiveQL1.PNG
> <
> http://apache-nifi-developer-list.39713.n7.nabble.com/file/t927/SelectHiveQL1.PNG
> >
>
> Thanks,
> Rohit
>
>
>
> --
> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
>


Not able to add "Max Rows Per Flow File" property in SelectHiveQL

2018-03-19 Thread Rohit
Hi,

  I am using SelectHiveQL 1.3.0 processor to read data from hive table and i
am trying to add "Max Rows Per Flow File" property in  SelectHiveQL but its
giving error "Max Rows Per Flow File" is not a supported property. As per
Nifi notes this is valid property.

SelectHiveQL.png

  
SelectHiveQL1.PNG

  

Thanks,
Rohit



--
Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/