[Dev] Issue in CEP time window

2016-04-02 Thread Mohamed Rilfi
Dear All

*In the Following Execution Plan the event staying forever in the one min
time window "ins#window.time(1 min)" *

/* Enter a unique ExecutionPlan */
@Plan:name('R_H_Match')

/* Enter a unique description for ExecutionPlan */
-- @Plan:description('ExecutionPlan')

/* define streams/tables and write queries here ... */

@Import('RelatedStream:1.0.0')
define stream rs (ID string, product string, uc1 string, state string,
brand string, model string, type string);

@Import('InputStream:1.0.0')
define stream ins (ID string, product string, uc1 string, state string,
brand string, model string, type string, tweet string);



@Export('matchingStream:1.0.0')
define stream ms (rID string, rproduct string, ruc1 string, rstate string,
rbrand string, rmodel string, rtype string, hID string, hproduct string,
huc1 string, hstate string, hbrand string, hmodel string, htype string);

from ins#window.time(1 min) as R
  join rs#window.length(1) as H
  on R.product == H.product and R.brand==H.brand and R.type==H.type and
R.state!=H.state
select R.ID as rID, R.product as rproduct , R.uc1 as ruc1 , R.state as
rstate, R.brand as rbrand , R.model as rmodel , R.type as rtype ,H.ID as
hID , H.product as hproduct , H.uc1 as huc1 , H.state as hstate , H.brand
as hbrand, H.model as hmodel , H.type as htype
insert into ms;




Thanks & Best Regards

-- 

*M.R.M.Rilfi
M.Sc in Computer Science (Reading) Moratuwa
B.Sc Sp. Computer Science
Dept. Computer Science & Engineering,University of Moratuwa
ri...@live.com  , ri...@cse.mrt.ac.lk 
+94776284627 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we get following folders removed from IoT Server pack?

2016-04-02 Thread Sumedha Rubasinghe
IMO, removing following won't impact IoTS perspective.

wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/publisher/themes
wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store/themes/

Rename wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/
*publisher*/
to wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/
*app-publisher*/

wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-publisher/site/themes

wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/site/themes/fancy/
wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/site/themes/responsive/

wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/tests


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in CEP time window

2016-04-02 Thread Damith Wickramasinghe
Hi Mohamed,

I was able to reproduce it. We'll look into this. At the Mean time can you
please tell us the CEP version you are using.

Reagrds,
Damith.

On Sat, Apr 2, 2016 at 2:15 PM, Mohamed Rilfi  wrote:

> Dear All
>
> *In the Following Execution Plan the event staying forever in the one min
> time window "ins#window.time(1 min)" *
>
> /* Enter a unique ExecutionPlan */
> @Plan:name('R_H_Match')
>
> /* Enter a unique description for ExecutionPlan */
> -- @Plan:description('ExecutionPlan')
>
> /* define streams/tables and write queries here ... */
>
> @Import('RelatedStream:1.0.0')
> define stream rs (ID string, product string, uc1 string, state string,
> brand string, model string, type string);
>
> @Import('InputStream:1.0.0')
> define stream ins (ID string, product string, uc1 string, state string,
> brand string, model string, type string, tweet string);
>
>
>
> @Export('matchingStream:1.0.0')
> define stream ms (rID string, rproduct string, ruc1 string, rstate string,
> rbrand string, rmodel string, rtype string, hID string, hproduct string,
> huc1 string, hstate string, hbrand string, hmodel string, htype string);
>
> from ins#window.time(1 min) as R
>   join rs#window.length(1) as H
>   on R.product == H.product and R.brand==H.brand and R.type==H.type and
> R.state!=H.state
> select R.ID as rID, R.product as rproduct , R.uc1 as ruc1 , R.state as
> rstate, R.brand as rbrand , R.model as rmodel , R.type as rtype ,H.ID as
> hID , H.product as hproduct , H.uc1 as huc1 , H.state as hstate , H.brand
> as hbrand, H.model as hmodel , H.type as htype
> insert into ms;
>
>
>
>
> Thanks & Best Regards
>
> --
>
> *M.R.M.Rilfi
> M.Sc in Computer Science (Reading) Moratuwa
> B.Sc Sp. Computer Science
> Dept. Computer Science & Engineering,University of Moratuwa
> ri...@live.com  , ri...@cse.mrt.ac.lk 
> +94776284627 <%2B94776284627> *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we get following folders removed from IoT Server pack?

2016-04-02 Thread Ayyoob Hamza
okay ayya will do the changes and was bit curious whether we need to
install AppMgt features?, We need it for EMM use case and if we can deploy
IoT based application with AppMgt(I think its not supported yet) then i
guess it would help our story if not do we need the features in the pack?
or we can have it and then when we do profiling stuff we remove those
features in a devicemgt profile.

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sat, Apr 2, 2016 at 2:39 PM, Sumedha Rubasinghe  wrote:

> IMO, removing following won't impact IoTS perspective.
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/publisher/themes
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store/themes/
>
> Rename wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/
> *publisher*/
> to wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/
> *app-publisher*/
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-publisher/site/themes
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/site/themes/fancy/
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/site/themes/responsive/
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/tests
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election Analytics - Data won't persist in DAS

2016-04-02 Thread Udara Rathnayake
Hi Niranda,

​If we edit and save an existing stream definition (without going to the
persistence UI)​ this can happen right? I have faced similar thing but
never tried reproducing.

However we should bring tooling support(dev studio) ASAP to DAS artifacts,
so we can create and deploy via car apps easily.


On Fri, Apr 1, 2016 at 11:32 AM, Niranda Perera  wrote:

> Hi Chehara,
>
> It's highly unlikely that a stream persistence configuration to get
> disabled automatically. Looks like someone have mistakenly disabled it from
> the UI. As per the current persistence UI, there is a possibility that such
> an incident may occur.
>
>
> On Fri, Apr 1, 2016 at 8:43 PM, Chehara Pathmabandu 
> wrote:
>
>> Hi,
>>
>> Solved. event persistent had been disabled automatically.
>>
>> On Fri, Apr 1, 2016 at 8:16 PM, Niranda Perera  wrote:
>>
>>> Hi Yasara,
>>>
>>> We need to find where exactly the data stopped persisting. can you find
>>> the final entry? Are there any error in the logs?
>>>
>>> also, we need to check the mysql connections. Check if it has grown out
>>> of proportion as previously.
>>> And the CPU and memory usage of the node.
>>>
>>> On Fri, Apr 1, 2016 at 7:37 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 [Adding Dev mail thread]

 @Niranda, can you please dig on this issue and find the root cause..



 On Fri, Apr 1, 2016 at 7:26 PM, Yasara Dissanayake 
 wrote:

> Hi,
>
> As you can see from the image attached here[1]:
> Current status is growing as the data receive and we use this same
> stream to persist. But from a particular date data had not been persisted.
>
> regards,
> yasara
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


 --
 *V. Mohanadarshan*
 *Senior Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chehara Pathmabandu
>> *Software Engineer - Intern*
>> Mobile : +94711976407
>> cheh...@wso2.com
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election Analytics - Data won't persist in DAS

2016-04-02 Thread Niranda Perera
Hi Udara,

Ah. Never came across it but yes, you are correct. This seems to be a UI
bug.

Can you report a JIRA in this?

Rgds
On Apr 2, 2016 21:45, "Udara Rathnayake"  wrote:

> Hi Niranda,
>
> ​If we edit and save an existing stream definition (without going to the
> persistence UI)​ this can happen right? I have faced similar thing but
> never tried reproducing.
>
> However we should bring tooling support(dev studio) ASAP to DAS artifacts,
> so we can create and deploy via car apps easily.
>
>
> On Fri, Apr 1, 2016 at 11:32 AM, Niranda Perera  wrote:
>
>> Hi Chehara,
>>
>> It's highly unlikely that a stream persistence configuration to get
>> disabled automatically. Looks like someone have mistakenly disabled it from
>> the UI. As per the current persistence UI, there is a possibility that such
>> an incident may occur.
>>
>>
>> On Fri, Apr 1, 2016 at 8:43 PM, Chehara Pathmabandu 
>> wrote:
>>
>>> Hi,
>>>
>>> Solved. event persistent had been disabled automatically.
>>>
>>> On Fri, Apr 1, 2016 at 8:16 PM, Niranda Perera  wrote:
>>>
 Hi Yasara,

 We need to find where exactly the data stopped persisting. can you find
 the final entry? Are there any error in the logs?

 also, we need to check the mysql connections. Check if it has grown out
 of proportion as previously.
 And the CPU and memory usage of the node.

 On Fri, Apr 1, 2016 at 7:37 PM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> [Adding Dev mail thread]
>
> @Niranda, can you please dig on this issue and find the root cause..
>
>
>
> On Fri, Apr 1, 2016 at 7:26 PM, Yasara Dissanayake 
> wrote:
>
>> Hi,
>>
>> As you can see from the image attached here[1]:
>> Current status is growing as the data receive and we use this same
>> stream to persist. But from a particular date data had not been 
>> persisted.
>>
>> regards,
>> yasara
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Chehara Pathmabandu
>>> *Software Engineer - Intern*
>>> Mobile : +94711976407
>>> cheh...@wso2.com
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
> UdaraR
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election Analytics - Data won't persist in DAS

2016-04-02 Thread Udara Rathnayake
Sure Niranda, Let me know whether I have to report this in CEP or DAS?

On Sat, Apr 2, 2016 at 12:21 PM, Niranda Perera  wrote:

> Hi Udara,
>
> Ah. Never came across it but yes, you are correct. This seems to be a UI
> bug.
>
> Can you report a JIRA in this?
>
> Rgds
> On Apr 2, 2016 21:45, "Udara Rathnayake"  wrote:
>
>> Hi Niranda,
>>
>> ​If we edit and save an existing stream definition (without going to the
>> persistence UI)​ this can happen right? I have faced similar thing but
>> never tried reproducing.
>>
>> However we should bring tooling support(dev studio) ASAP to DAS
>> artifacts, so we can create and deploy via car apps easily.
>>
>>
>> On Fri, Apr 1, 2016 at 11:32 AM, Niranda Perera  wrote:
>>
>>> Hi Chehara,
>>>
>>> It's highly unlikely that a stream persistence configuration to get
>>> disabled automatically. Looks like someone have mistakenly disabled it from
>>> the UI. As per the current persistence UI, there is a possibility that such
>>> an incident may occur.
>>>
>>>
>>> On Fri, Apr 1, 2016 at 8:43 PM, Chehara Pathmabandu 
>>> wrote:
>>>
 Hi,

 Solved. event persistent had been disabled automatically.

 On Fri, Apr 1, 2016 at 8:16 PM, Niranda Perera 
 wrote:

> Hi Yasara,
>
> We need to find where exactly the data stopped persisting. can you
> find the final entry? Are there any error in the logs?
>
> also, we need to check the mysql connections. Check if it has grown
> out of proportion as previously.
> And the CPU and memory usage of the node.
>
> On Fri, Apr 1, 2016 at 7:37 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> [Adding Dev mail thread]
>>
>> @Niranda, can you please dig on this issue and find the root cause..
>>
>>
>>
>> On Fri, Apr 1, 2016 at 7:26 PM, Yasara Dissanayake 
>> wrote:
>>
>>> Hi,
>>>
>>> As you can see from the image attached here[1]:
>>> Current status is growing as the data receive and we use this same
>>> stream to persist. But from a particular date data had not been 
>>> persisted.
>>>
>>> regards,
>>> yasara
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Senior Software Engineer,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Chehara Pathmabandu
 *Software Engineer - Intern*
 Mobile : +94711976407
 cheh...@wso2.com

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>


-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election Analytics - Data won't persist in DAS

2016-04-02 Thread Mohanadarshan Vivekanandalingam
On Sat, Apr 2, 2016 at 9:56 PM, Udara Rathnayake  wrote:

> Sure Niranda, Let me know whether I have to report this in CEP or DAS?
>
> It should be DAS :)


> On Sat, Apr 2, 2016 at 12:21 PM, Niranda Perera  wrote:
>
>> Hi Udara,
>>
>> Ah. Never came across it but yes, you are correct. This seems to be a UI
>> bug.
>>
>> Can you report a JIRA in this?
>>
>> Rgds
>> On Apr 2, 2016 21:45, "Udara Rathnayake"  wrote:
>>
>>> Hi Niranda,
>>>
>>> ​If we edit and save an existing stream definition (without going to the
>>> persistence UI)​ this can happen right? I have faced similar thing but
>>> never tried reproducing.
>>>
>>> However we should bring tooling support(dev studio) ASAP to DAS
>>> artifacts, so we can create and deploy via car apps easily.
>>>
>>>
>>> On Fri, Apr 1, 2016 at 11:32 AM, Niranda Perera 
>>> wrote:
>>>
 Hi Chehara,

 It's highly unlikely that a stream persistence configuration to get
 disabled automatically. Looks like someone have mistakenly disabled it from
 the UI. As per the current persistence UI, there is a possibility that such
 an incident may occur.


 On Fri, Apr 1, 2016 at 8:43 PM, Chehara Pathmabandu 
 wrote:

> Hi,
>
> Solved. event persistent had been disabled automatically.
>
> On Fri, Apr 1, 2016 at 8:16 PM, Niranda Perera 
> wrote:
>
>> Hi Yasara,
>>
>> We need to find where exactly the data stopped persisting. can you
>> find the final entry? Are there any error in the logs?
>>
>> also, we need to check the mysql connections. Check if it has grown
>> out of proportion as previously.
>> And the CPU and memory usage of the node.
>>
>> On Fri, Apr 1, 2016 at 7:37 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> [Adding Dev mail thread]
>>>
>>> @Niranda, can you please dig on this issue and find the root cause..
>>>
>>>
>>>
>>> On Fri, Apr 1, 2016 at 7:26 PM, Yasara Dissanayake 
>>> wrote:
>>>
 Hi,

 As you can see from the image attached here[1]:
 Current status is growing as the data receive and we use this same
 stream to persist. But from a particular date data had not been 
 persisted.

 regards,
 yasara




















>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Senior Software Engineer,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chehara Pathmabandu
> *Software Engineer - Intern*
> Mobile : +94711976407
> cheh...@wso2.com
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>
>
> --
> Regards,
> UdaraR
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*V. Mohanadarshan*
*Senior Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election Analytics - Data won't persist in DAS

2016-04-02 Thread Niranda Perera
Yes. It's related to DAS event sink UI
On Apr 2, 2016 22:04, "Mohanadarshan Vivekanandalingam" 
wrote:

>
>
> On Sat, Apr 2, 2016 at 9:56 PM, Udara Rathnayake  wrote:
>
>> Sure Niranda, Let me know whether I have to report this in CEP or DAS?
>>
>> It should be DAS :)
>
>
>> On Sat, Apr 2, 2016 at 12:21 PM, Niranda Perera  wrote:
>>
>>> Hi Udara,
>>>
>>> Ah. Never came across it but yes, you are correct. This seems to be a UI
>>> bug.
>>>
>>> Can you report a JIRA in this?
>>>
>>> Rgds
>>> On Apr 2, 2016 21:45, "Udara Rathnayake"  wrote:
>>>
 Hi Niranda,

 ​If we edit and save an existing stream definition (without going to
 the persistence UI)​ this can happen right? I have faced similar thing but
 never tried reproducing.

 However we should bring tooling support(dev studio) ASAP to DAS
 artifacts, so we can create and deploy via car apps easily.


 On Fri, Apr 1, 2016 at 11:32 AM, Niranda Perera 
 wrote:

> Hi Chehara,
>
> It's highly unlikely that a stream persistence configuration to get
> disabled automatically. Looks like someone have mistakenly disabled it 
> from
> the UI. As per the current persistence UI, there is a possibility that 
> such
> an incident may occur.
>
>
> On Fri, Apr 1, 2016 at 8:43 PM, Chehara Pathmabandu 
> wrote:
>
>> Hi,
>>
>> Solved. event persistent had been disabled automatically.
>>
>> On Fri, Apr 1, 2016 at 8:16 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Yasara,
>>>
>>> We need to find where exactly the data stopped persisting. can you
>>> find the final entry? Are there any error in the logs?
>>>
>>> also, we need to check the mysql connections. Check if it has grown
>>> out of proportion as previously.
>>> And the CPU and memory usage of the node.
>>>
>>> On Fri, Apr 1, 2016 at 7:37 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 [Adding Dev mail thread]

 @Niranda, can you please dig on this issue and find the root
 cause..



 On Fri, Apr 1, 2016 at 7:26 PM, Yasara Dissanayake >>> > wrote:

> Hi,
>
> As you can see from the image attached here[1]:
> Current status is growing as the data receive and we use this same
> stream to persist. But from a particular date data had not been 
> persisted.
>
> regards,
> yasara
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


 --
 *V. Mohanadarshan*
 *Senior Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chehara Pathmabandu
>> *Software Engineer - Intern*
>> Mobile : +94711976407
>> cheh...@wso2.com
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Regards,
 UdaraR

>>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election Analytics - Data won't persist in DAS

2016-04-02 Thread Udara Rathnayake
https://wso2.org/jira/browse/DAS-388 created.

On Sat, Apr 2, 2016 at 12:34 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Sat, Apr 2, 2016 at 9:56 PM, Udara Rathnayake  wrote:
>
>> Sure Niranda, Let me know whether I have to report this in CEP or DAS?
>>
>> It should be DAS :)
>
>
>> On Sat, Apr 2, 2016 at 12:21 PM, Niranda Perera  wrote:
>>
>>> Hi Udara,
>>>
>>> Ah. Never came across it but yes, you are correct. This seems to be a UI
>>> bug.
>>>
>>> Can you report a JIRA in this?
>>>
>>> Rgds
>>> On Apr 2, 2016 21:45, "Udara Rathnayake"  wrote:
>>>
 Hi Niranda,

 ​If we edit and save an existing stream definition (without going to
 the persistence UI)​ this can happen right? I have faced similar thing but
 never tried reproducing.

 However we should bring tooling support(dev studio) ASAP to DAS
 artifacts, so we can create and deploy via car apps easily.


 On Fri, Apr 1, 2016 at 11:32 AM, Niranda Perera 
 wrote:

> Hi Chehara,
>
> It's highly unlikely that a stream persistence configuration to get
> disabled automatically. Looks like someone have mistakenly disabled it 
> from
> the UI. As per the current persistence UI, there is a possibility that 
> such
> an incident may occur.
>
>
> On Fri, Apr 1, 2016 at 8:43 PM, Chehara Pathmabandu 
> wrote:
>
>> Hi,
>>
>> Solved. event persistent had been disabled automatically.
>>
>> On Fri, Apr 1, 2016 at 8:16 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Yasara,
>>>
>>> We need to find where exactly the data stopped persisting. can you
>>> find the final entry? Are there any error in the logs?
>>>
>>> also, we need to check the mysql connections. Check if it has grown
>>> out of proportion as previously.
>>> And the CPU and memory usage of the node.
>>>
>>> On Fri, Apr 1, 2016 at 7:37 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 [Adding Dev mail thread]

 @Niranda, can you please dig on this issue and find the root
 cause..



 On Fri, Apr 1, 2016 at 7:26 PM, Yasara Dissanayake >>> > wrote:

> Hi,
>
> As you can see from the image attached here[1]:
> Current status is growing as the data receive and we use this same
> stream to persist. But from a particular date data had not been 
> persisted.
>
> regards,
> yasara
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


 --
 *V. Mohanadarshan*
 *Senior Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chehara Pathmabandu
>> *Software Engineer - Intern*
>> Mobile : +94711976407
>> cheh...@wso2.com
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Regards,
 UdaraR

>>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IoTServer taking much longer time to start

2016-04-02 Thread Ayyoob Hamza
Hi,
This issue is sorted, The fixes are in the carbon-analytics-common
and carbon-event-processing components. We can add this once the components
are released.

Regards,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, Mar 9, 2016 at 10:26 AM, Prabath Abeysekera 
wrote:

> @Ayyoob, Excellent work figuring out the root cause!
>
> Well, excessive start-up time can be a nasty user experience killer
> particularly when it comes to releasing something fresh as IoTS 1.0.0. Cz,
> when the maiden release of anything goes out, we need to make sure that it
> creates a good impression on the user at least as part of the first few
> things that the user would do after downloading the product i.e. Spinning
> up the server, etc. So, let's further dig in and see if we can figure out
> any workaround that would potentially fix this. I would suggest we fix this
> now itself rather than pushing it to the next version of the product.
>
> Cheers,
> Prabath
>
> On Mon, Mar 7, 2016 at 8:44 AM, Ruwan Yatawara  wrote:
>
>> --dev
>>
>> Guys I think this is a bit of a significant change. Since the start up
>> delay is the only problem in the foreseeable future this will fix.. shall
>> we not focus a lot on this.. ? WDYT?
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>>
>>
>> On Mon, Mar 7, 2016 at 8:42 AM, Ruwan Yatawara  wrote:
>>
>>> Hi Ayyoob,
>>>
>>> I had a chat with Ramith once before on why they went with the latest
>>> release of lib thrift. I was told that this fixes a bunch of issues
>>> prevalent in the previous version.
>>>
>>> So i guess this upgrade should happen at some point in the future.
>>> However, when upgrading we will have to change a whole bunch of other
>>> components as well as analytics-common. Since this also involves API
>>> changes, there would be a testing effort involved as well.
>>>
>>>
>>> [1] - https://github.com/apache/thrift/blob/0.9.2/CHANGES
>>>
>>> Thanks and Regards,
>>>
>>> Ruwan Yatawara
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>>
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://ruwansrants.blogspot.com/
>>> www: :http://wso2.com
>>>
>>>
>>> On Mon, Mar 7, 2016 at 2:43 AM, Ayyoob Hamza  wrote:
>>>
 Hi,
 Went through the version conflicted dependencies in the pack and found
 that this is caused due to libthrift dependency. libthrift v0.8.0.wso2v1
 and v0.9.2.wso2v1 are both within the pack, In which analytics-commons and
 event-messaging-processor depends on the lesser and andes(mb) depend on the
 greater version. Since there are lot to change in the lesser version
 depended libraries, I had to test this premise by downgrading the version
 of andes libthrift version and with this change the pack started quickly.
 Need analyze the reason on why this 2 version affect the start up delay.
 However I think we might need to upgrade the libthrift library in
 analytics-commons and event-messaging-processor dependencies to solve this
 issue.

 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

 On Thu, Jan 28, 2016 at 10:51 AM, Sumedha Rubasinghe 
 wrote:

> But this does not seem to be noticeable on Macs.
>
> On Thu, Jan 28, 2016 at 12:04 AM, Charitha Goonetilleke <
> charit...@wso2.com> wrote:
>
>> Hi All,
>>
>> After looking into server startup with RuwanA, found that 
>> *org.eclipse.osgi.internal.resolver.VersionConstraintImpl
>> *class getting much more CPU time by causing the $subject. Also
>> HashMap get() method invoking too many times from above class. This is
>> happening when OSGi framework tried to resolve bundles when starting the
>> runtime.
>>
>> Since IoT server has relatively large number of bundles (786) with
>> size of 346.6MB, it might have large number of dependencies to check and
>> verify during bundle resolving stage. Seems it is the reason for that 
>> time
>> delay and can't fix $subject without reducing the number of bundles 
>> inside
>> the IoTServer product.
>>
>> Please let me know if there any other concerns or ideas.
>>
>> Thanks & Regards,
>> /charithag
>>
>> On Mon, Jan 25, 2016 at 10:49 PM, Charitha Goonetilleke <
>> charit...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> When we are doing developments with IoTServer, we realized that,
>>> IoTServer takes some time to start from wso2server.sh script. Usually it
>>> takes nearly 120 seconds. I think it is much more higher than our other
>>> products. By the way when analyzing the server logs, I found that, 
>>> ther

[Dev] Thrift test server independent from carbon dependencies

2016-04-02 Thread Kalpa Welivitigoda
Hi devs,

Do we have $subject? . I am writing a tests to test http statistics
publishing in AS 6.0.0 which is almost independent from carbon dependencies
(ATM we have data bridge dependencies for data publishing though)

I tried the thrift test server at [1] (this was mentioned in [2]) but it
seems it heavily depends on carbon dependencies. Since AS 6.0.0 is
independent from carbon dependencies I am looking for a way to write the
test also independent from carbon dependencies.

[1]
https://github.com/wso2/carbon-analytics-common/blob/master/components/data-bridge/org.wso2.carbon.databridge.agent/src/test/java/org/wso2/carbon/databridge/agent/test/thrift/ThriftTestServer.java
[2] "[Dev] [Test Automation] Mocking Thrift server for an integration test"

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in CEP time window

2016-04-02 Thread Damith Wickramasinghe
Hi Mohamed,

can you tel us how did you reproduced it? In my case I had only event sent
to time window stream but in real scenario there will be many events and
then this issue won't occur. Can you please try that way.

Regards,
Damith.

On Sat, Apr 2, 2016 at 2:48 PM, Damith Wickramasinghe 
wrote:

> Hi Mohamed,
>
> I was able to reproduce it. We'll look into this. At the Mean time can you
> please tell us the CEP version you are using.
>
> Reagrds,
> Damith.
>
> On Sat, Apr 2, 2016 at 2:15 PM, Mohamed Rilfi  wrote:
>
>> Dear All
>>
>> *In the Following Execution Plan the event staying forever in the one min
>> time window "ins#window.time(1 min)" *
>>
>> /* Enter a unique ExecutionPlan */
>> @Plan:name('R_H_Match')
>>
>> /* Enter a unique description for ExecutionPlan */
>> -- @Plan:description('ExecutionPlan')
>>
>> /* define streams/tables and write queries here ... */
>>
>> @Import('RelatedStream:1.0.0')
>> define stream rs (ID string, product string, uc1 string, state string,
>> brand string, model string, type string);
>>
>> @Import('InputStream:1.0.0')
>> define stream ins (ID string, product string, uc1 string, state string,
>> brand string, model string, type string, tweet string);
>>
>>
>>
>> @Export('matchingStream:1.0.0')
>> define stream ms (rID string, rproduct string, ruc1 string, rstate
>> string, rbrand string, rmodel string, rtype string, hID string, hproduct
>> string, huc1 string, hstate string, hbrand string, hmodel string, htype
>> string);
>>
>> from ins#window.time(1 min) as R
>>   join rs#window.length(1) as H
>>   on R.product == H.product and R.brand==H.brand and R.type==H.type and
>> R.state!=H.state
>> select R.ID as rID, R.product as rproduct , R.uc1 as ruc1 , R.state as
>> rstate, R.brand as rbrand , R.model as rmodel , R.type as rtype ,H.ID as
>> hID , H.product as hproduct , H.uc1 as huc1 , H.state as hstate , H.brand
>> as hbrand, H.model as hmodel , H.type as htype
>> insert into ms;
>>
>>
>>
>>
>> Thanks & Best Regards
>>
>> --
>>
>> *M.R.M.Rilfi
>> M.Sc in Computer Science (Reading) Moratuwa
>> B.Sc Sp. Computer Science
>> Dept. Computer Science & Engineering,University of Moratuwa
>> ri...@live.com  , ri...@cse.mrt.ac.lk 
>> +94776284627 <%2B94776284627> *
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS] Arbitrary data is not visible in data explorer

2016-04-02 Thread Kalpa Welivitigoda
Hi all,

I have added an arbitrary values Map  when constructing the
Event to be published to DAS 3.0.1. But when I publish and search the table
in Data Explorer in DAS, I don't see the arbitrary data in "Arbitrary
Fields / Extended fields" section of any record.

Would this be related to [1] or am I missing something here?

[1] https://wso2.org/jira/browse/DAS-255

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev