You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Pranavan Theivendiram <pr...@cse.mrt.ac.lk> on 2015/08/09 17:30:23 UTC
[GSOC 2015] [Curve Fitting Window Processor help]
Hi All,
I have completed the window processor for curve fitting and during the
manual testing I found that its run method is called (I have put some info
logs and they are printed for every 10 minutes) as expected. But it does
not calculate the curve fitting co-efficient since the events are not
received by CEP. In order to check whether it is the problem from my
implementation, I have checked whether the events are received by other
window processors such as gradient and second gradient, they also do not
receive the new events. In management console I also checked whether the
execution plans and event streams are active. They are active as expected.
What is the reason behind this ? Is this normal?
Thank you
Regards,
*T. Pranavan*
*BSc Eng Undergraduate| Department of Computer Science & Engineering
,University of Moratuwa*
*Mobile| *0775136836
Re: [GSOC 2015] [Curve Fitting Window Processor help]
Posted by Pranavan Theivendiram <pr...@cse.mrt.ac.lk>.
Hi Lahiru,
I will be going to WSO2 tomorrow. I will do a small demo on what I have
done.
Thanks
*T. Pranavan*
*BSc Eng Undergraduate| Department of Computer Science & Engineering
,University of Moratuwa*
*Mobile| *0775136836
On 11 August 2015 at 07:01, Lahiru Sandaruwan <la...@wso2.com> wrote:
> Great, Can please arrange a demo on what you have ASAP?
>
> Thanks.
>
> On Mon, Aug 10, 2015 at 8:08 PM, Pranavan Theivendiram <
> pranavan.11@cse.mrt.ac.lk> wrote:
>
>> Hi Lahiru,
>>
>> I have fixed that issue.
>> On Aug 11, 2015 12:27 AM, "Lahiru Sandaruwan" <la...@wso2.com> wrote:
>>
>>> Hi Pranavan,
>>>
>>> As per offline discussion, please check why the current window
>>> processors are not receiving events as well.
>>>
>>> Thanks.
>>>
>>> On Sun, Aug 9, 2015 at 9:20 PM, Pranavan Theivendiram <
>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>
>>>> Hi Akila,
>>>>
>>>> I have used Mock-iaas[1]
>>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Apache+Stratos+Mock+IaaS>.
>>>> Can you suggest me a documentation or some pre-written sample thrift
>>>> clients that I can use for my testing?
>>>>
>>>> Thanks
>>>>
>>>> *T. Pranavan*
>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>> ,University of Moratuwa*
>>>> *Mobile| *0775136836
>>>>
>>>> On 9 August 2015 at 22:10, Akila Ravihansa Perera <ra...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Pranavan,
>>>>>
>>>>> What events are you expecting here?
>>>>>
>>>>> Either you need to deploy an application to receive events OR write
>>>>> your own custom thrift client to publish events to CEP. What is your
>>>>> approach to test the curve fitting window processor?
>>>>>
>>>>> My suggestion is to write your own thrift client which would publish
>>>>> predefined sets of events and check whether curve fitting window processor
>>>>> is calculating the correct values for those event sets. After that you can
>>>>> deploy an application on mock iaas and test the end-to-end flow. You can
>>>>> define a range of values to be published In mock iaas as well.
>>>>>
>>>>>
>>>>> On Sun, Aug 9, 2015 at 9:00 PM, Pranavan Theivendiram <
>>>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I have completed the window processor for curve fitting and during
>>>>>> the manual testing I found that its run method is called (I have put some
>>>>>> info logs and they are printed for every 10 minutes) as expected. But it
>>>>>> does not calculate the curve fitting co-efficient since the events are not
>>>>>> received by CEP. In order to check whether it is the problem from my
>>>>>> implementation, I have checked whether the events are received by other
>>>>>> window processors such as gradient and second gradient, they also do not
>>>>>> receive the new events. In management console I also checked whether the
>>>>>> execution plans and event streams are active. They are active as expected.
>>>>>> What is the reason behind this ? Is this normal?
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>> Regards,
>>>>>> *T. Pranavan*
>>>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>>>> ,University of Moratuwa*
>>>>>> *Mobile| *0775136836
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Akila Ravihansa Perera
>>>>> WSO2 Inc.; http://wso2.com/
>>>>>
>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> phone: +94773325954
>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
Re: [GSOC 2015] [Curve Fitting Window Processor help]
Posted by Lahiru Sandaruwan <la...@wso2.com>.
Great, Can please arrange a demo on what you have ASAP?
Thanks.
On Mon, Aug 10, 2015 at 8:08 PM, Pranavan Theivendiram <
pranavan.11@cse.mrt.ac.lk> wrote:
> Hi Lahiru,
>
> I have fixed that issue.
> On Aug 11, 2015 12:27 AM, "Lahiru Sandaruwan" <la...@wso2.com> wrote:
>
>> Hi Pranavan,
>>
>> As per offline discussion, please check why the current window processors
>> are not receiving events as well.
>>
>> Thanks.
>>
>> On Sun, Aug 9, 2015 at 9:20 PM, Pranavan Theivendiram <
>> pranavan.11@cse.mrt.ac.lk> wrote:
>>
>>> Hi Akila,
>>>
>>> I have used Mock-iaas[1]
>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Apache+Stratos+Mock+IaaS>.
>>> Can you suggest me a documentation or some pre-written sample thrift
>>> clients that I can use for my testing?
>>>
>>> Thanks
>>>
>>> *T. Pranavan*
>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>> ,University of Moratuwa*
>>> *Mobile| *0775136836
>>>
>>> On 9 August 2015 at 22:10, Akila Ravihansa Perera <ra...@wso2.com>
>>> wrote:
>>>
>>>> Hi Pranavan,
>>>>
>>>> What events are you expecting here?
>>>>
>>>> Either you need to deploy an application to receive events OR write
>>>> your own custom thrift client to publish events to CEP. What is your
>>>> approach to test the curve fitting window processor?
>>>>
>>>> My suggestion is to write your own thrift client which would publish
>>>> predefined sets of events and check whether curve fitting window processor
>>>> is calculating the correct values for those event sets. After that you can
>>>> deploy an application on mock iaas and test the end-to-end flow. You can
>>>> define a range of values to be published In mock iaas as well.
>>>>
>>>>
>>>> On Sun, Aug 9, 2015 at 9:00 PM, Pranavan Theivendiram <
>>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have completed the window processor for curve fitting and during the
>>>>> manual testing I found that its run method is called (I have put some info
>>>>> logs and they are printed for every 10 minutes) as expected. But it does
>>>>> not calculate the curve fitting co-efficient since the events are not
>>>>> received by CEP. In order to check whether it is the problem from my
>>>>> implementation, I have checked whether the events are received by other
>>>>> window processors such as gradient and second gradient, they also do not
>>>>> receive the new events. In management console I also checked whether the
>>>>> execution plans and event streams are active. They are active as expected.
>>>>> What is the reason behind this ? Is this normal?
>>>>>
>>>>> Thank you
>>>>>
>>>>> Regards,
>>>>> *T. Pranavan*
>>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>>> ,University of Moratuwa*
>>>>> *Mobile| *0775136836
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Akila Ravihansa Perera
>>>> WSO2 Inc.; http://wso2.com/
>>>>
>>>> Blog: http://ravihansa3000.blogspot.com
>>>>
>>>
>>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> phone: +94773325954
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
--
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
phone: +94773325954
email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: [GSOC 2015] [Curve Fitting Window Processor help]
Posted by Pranavan Theivendiram <pr...@cse.mrt.ac.lk>.
Hi Lahiru,
I have fixed that issue.
On Aug 11, 2015 12:27 AM, "Lahiru Sandaruwan" <la...@wso2.com> wrote:
> Hi Pranavan,
>
> As per offline discussion, please check why the current window processors
> are not receiving events as well.
>
> Thanks.
>
> On Sun, Aug 9, 2015 at 9:20 PM, Pranavan Theivendiram <
> pranavan.11@cse.mrt.ac.lk> wrote:
>
>> Hi Akila,
>>
>> I have used Mock-iaas[1]
>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Apache+Stratos+Mock+IaaS>.
>> Can you suggest me a documentation or some pre-written sample thrift
>> clients that I can use for my testing?
>>
>> Thanks
>>
>> *T. Pranavan*
>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>> ,University of Moratuwa*
>> *Mobile| *0775136836
>>
>> On 9 August 2015 at 22:10, Akila Ravihansa Perera <ra...@wso2.com>
>> wrote:
>>
>>> Hi Pranavan,
>>>
>>> What events are you expecting here?
>>>
>>> Either you need to deploy an application to receive events OR write your
>>> own custom thrift client to publish events to CEP. What is your approach to
>>> test the curve fitting window processor?
>>>
>>> My suggestion is to write your own thrift client which would publish
>>> predefined sets of events and check whether curve fitting window processor
>>> is calculating the correct values for those event sets. After that you can
>>> deploy an application on mock iaas and test the end-to-end flow. You can
>>> define a range of values to be published In mock iaas as well.
>>>
>>>
>>> On Sun, Aug 9, 2015 at 9:00 PM, Pranavan Theivendiram <
>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have completed the window processor for curve fitting and during the
>>>> manual testing I found that its run method is called (I have put some info
>>>> logs and they are printed for every 10 minutes) as expected. But it does
>>>> not calculate the curve fitting co-efficient since the events are not
>>>> received by CEP. In order to check whether it is the problem from my
>>>> implementation, I have checked whether the events are received by other
>>>> window processors such as gradient and second gradient, they also do not
>>>> receive the new events. In management console I also checked whether the
>>>> execution plans and event streams are active. They are active as expected.
>>>> What is the reason behind this ? Is this normal?
>>>>
>>>> Thank you
>>>>
>>>> Regards,
>>>> *T. Pranavan*
>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>> ,University of Moratuwa*
>>>> *Mobile| *0775136836
>>>>
>>>
>>>
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.; http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
Re: [GSOC 2015] [Curve Fitting Window Processor help]
Posted by Lahiru Sandaruwan <la...@wso2.com>.
Hi Pranavan,
As per offline discussion, please check why the current window processors
are not receiving events as well.
Thanks.
On Sun, Aug 9, 2015 at 9:20 PM, Pranavan Theivendiram <
pranavan.11@cse.mrt.ac.lk> wrote:
> Hi Akila,
>
> I have used Mock-iaas[1]
> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Apache+Stratos+Mock+IaaS>.
> Can you suggest me a documentation or some pre-written sample thrift
> clients that I can use for my testing?
>
> Thanks
>
> *T. Pranavan*
> *BSc Eng Undergraduate| Department of Computer Science & Engineering
> ,University of Moratuwa*
> *Mobile| *0775136836
>
> On 9 August 2015 at 22:10, Akila Ravihansa Perera <ra...@wso2.com>
> wrote:
>
>> Hi Pranavan,
>>
>> What events are you expecting here?
>>
>> Either you need to deploy an application to receive events OR write your
>> own custom thrift client to publish events to CEP. What is your approach to
>> test the curve fitting window processor?
>>
>> My suggestion is to write your own thrift client which would publish
>> predefined sets of events and check whether curve fitting window processor
>> is calculating the correct values for those event sets. After that you can
>> deploy an application on mock iaas and test the end-to-end flow. You can
>> define a range of values to be published In mock iaas as well.
>>
>>
>> On Sun, Aug 9, 2015 at 9:00 PM, Pranavan Theivendiram <
>> pranavan.11@cse.mrt.ac.lk> wrote:
>>
>>> Hi All,
>>>
>>> I have completed the window processor for curve fitting and during the
>>> manual testing I found that its run method is called (I have put some info
>>> logs and they are printed for every 10 minutes) as expected. But it does
>>> not calculate the curve fitting co-efficient since the events are not
>>> received by CEP. In order to check whether it is the problem from my
>>> implementation, I have checked whether the events are received by other
>>> window processors such as gradient and second gradient, they also do not
>>> receive the new events. In management console I also checked whether the
>>> execution plans and event streams are active. They are active as expected.
>>> What is the reason behind this ? Is this normal?
>>>
>>> Thank you
>>>
>>> Regards,
>>> *T. Pranavan*
>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>> ,University of Moratuwa*
>>> *Mobile| *0775136836
>>>
>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.; http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
--
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
phone: +94773325954
email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: [GSOC 2015] [Curve Fitting Window Processor help]
Posted by Pranavan Theivendiram <pr...@cse.mrt.ac.lk>.
Hi Akila,
I have used Mock-iaas[1]
<https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Apache+Stratos+Mock+IaaS>.
Can you suggest me a documentation or some pre-written sample thrift
clients that I can use for my testing?
Thanks
*T. Pranavan*
*BSc Eng Undergraduate| Department of Computer Science & Engineering
,University of Moratuwa*
*Mobile| *0775136836
On 9 August 2015 at 22:10, Akila Ravihansa Perera <ra...@wso2.com>
wrote:
> Hi Pranavan,
>
> What events are you expecting here?
>
> Either you need to deploy an application to receive events OR write your
> own custom thrift client to publish events to CEP. What is your approach to
> test the curve fitting window processor?
>
> My suggestion is to write your own thrift client which would publish
> predefined sets of events and check whether curve fitting window processor
> is calculating the correct values for those event sets. After that you can
> deploy an application on mock iaas and test the end-to-end flow. You can
> define a range of values to be published In mock iaas as well.
>
>
> On Sun, Aug 9, 2015 at 9:00 PM, Pranavan Theivendiram <
> pranavan.11@cse.mrt.ac.lk> wrote:
>
>> Hi All,
>>
>> I have completed the window processor for curve fitting and during the
>> manual testing I found that its run method is called (I have put some info
>> logs and they are printed for every 10 minutes) as expected. But it does
>> not calculate the curve fitting co-efficient since the events are not
>> received by CEP. In order to check whether it is the problem from my
>> implementation, I have checked whether the events are received by other
>> window processors such as gradient and second gradient, they also do not
>> receive the new events. In management console I also checked whether the
>> execution plans and event streams are active. They are active as expected.
>> What is the reason behind this ? Is this normal?
>>
>> Thank you
>>
>> Regards,
>> *T. Pranavan*
>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>> ,University of Moratuwa*
>> *Mobile| *0775136836
>>
>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.; http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
Re: [GSOC 2015] [Curve Fitting Window Processor help]
Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Hi Pranavan,
What events are you expecting here?
Either you need to deploy an application to receive events OR write your
own custom thrift client to publish events to CEP. What is your approach to
test the curve fitting window processor?
My suggestion is to write your own thrift client which would publish
predefined sets of events and check whether curve fitting window processor
is calculating the correct values for those event sets. After that you can
deploy an application on mock iaas and test the end-to-end flow. You can
define a range of values to be published In mock iaas as well.
On Sun, Aug 9, 2015 at 9:00 PM, Pranavan Theivendiram <
pranavan.11@cse.mrt.ac.lk> wrote:
> Hi All,
>
> I have completed the window processor for curve fitting and during the
> manual testing I found that its run method is called (I have put some info
> logs and they are printed for every 10 minutes) as expected. But it does
> not calculate the curve fitting co-efficient since the events are not
> received by CEP. In order to check whether it is the problem from my
> implementation, I have checked whether the events are received by other
> window processors such as gradient and second gradient, they also do not
> receive the new events. In management console I also checked whether the
> execution plans and event streams are active. They are active as expected.
> What is the reason behind this ? Is this normal?
>
> Thank you
>
> Regards,
> *T. Pranavan*
> *BSc Eng Undergraduate| Department of Computer Science & Engineering
> ,University of Moratuwa*
> *Mobile| *0775136836
>
--
Akila Ravihansa Perera
WSO2 Inc.; http://wso2.com/
Blog: http://ravihansa3000.blogspot.com