Re: [Dev] Regarding deployment of siddhi application in cluster

2018-06-25 Thread Chiran Fernando
Adding dev

On Mon, Jun 25, 2018 at 12:33 PM Chiran Fernando  wrote:

> Hi Babravahan,
>
> I configured your deployment with one manager and two resource nodes and
> deployed specific siddhi file as in [1]. It was deployed as expected in a
> single resource node.
>
> Just clarifying few details.
>
> In distributed siddhi application, an execution group is a single unit of
> execution. For each execution group, a specified number of parallel Siddhi
> application instances are created. This is done via the @dist annotation.
> As per your query,  no specific number of parallel instances are specified
> for group1, and therefore, only one instance is created for it at runtime
> by default. Therefore it will only deployed in a single resource node.
>
> `@App:name("siddhi-app-name-1")
>   @App:description("rule for siddhi-app-name-1")
>
>   @source(
>type="kafka",topic.list="input-topic",
>group.id="group1",threading.option="single.thread",
>bootstrap.servers="",
>@map(type="json"))
>   define stream inputstream (tag_id string, tag_type int, timestamp long,
> value double, quality int, datatype string);
>
>   @sink(
>   type="kafka",
>   topic="output-topic",
>   bootstrap.servers="",
>   @map(type="json"))
>   Define stream outputstream (message string);
>
>   @dist(execGroup="group1")
>   from inputstream[name=="penta"]
>   select tag_id as message
>   insert into outputstream;`
>
> Furthermore, WSO2 Stream Processor v4.0.0 uses round-robin to allocate
> each partial siddhi app.
> (From v4.2.0 it supports resource aware allocation).
>
> Regarding your second question, no configurations needs to be done wrt
> kafka. If you use different group_ids to subscribe to the same topic, each
> consumer will receive all the messages.
>
> Please verify the kafka server and client versions.  Refer [2]
>
> [1 ]
> https://stackoverflow.com/questions/51009786/wso2-sp-manager-does-not-save-the-rule-in-worker-resource-node
> [2] https://docs.wso2.com/display/SP400/Fully+Distributed+Deployment
>
>
> On Sun, Jun 24, 2018 at 8:32 PM Babravahan Babravahan <
> babrava...@gmail.com> wrote:
>
>> wanted to add, I am using wso2 SP version 4.0.0.
>>
>> On Sun, Jun 24, 2018 at 6:45 PM, Babravahan Babravahan <
>> babrava...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have some issues regarding deploying the siddhi application on cluster:
>>>
>>> I am planning to support more that 200 rules , each rule having multiple
>>> queries in it.
>>> so i had setup a fully distributed siddhi SP cluster with one manager
>>> and two workers (in future i want it to be expandable to more workers if
>>> number of rules increase). since rule are all unique i am pushing them in
>>> batch of 50 each to manager node.
>>>
>>> I am facing some issue when i do this.
>>>
>>> 1.rules pushed can be seen in one worker node's siddhi-files folder but
>>> no rule seems to appear in the other worker node's siddhi-files
>>> folder.(even though the manager node log seems to show the deployment in it)
>>> 2. since all  siddhi rule pushed, is registered to listen to same topic
>>> with only their group id being different . I observe that when in push
>>> events via this topic only few of rules get executed and output can be seen.
>>>
>>> So I need to know is there any thing else not mentioned in
>>> https://docs.wso2.com/display/SP400/Fully+Distributed+Deployment that i
>>> need to done, w.r.t kafka being the  input and output stream client.
>>>
>>> I have asked a question in stackoverflow as well:
>>>
>>> https://stackoverflow.com/questions/51009786/wso2-sp-manager-does-not-save-the-rule-in-worker-resource-node
>>>
>>>
>>> Thanks and regards,
>>> babravahan
>>>
>>>
>>>
>>
>
> --
> *Chiran Fernando*
> Software Engineer | WSO2
>
> Email : chi...@wso2.com
> Mobile : +94716007376
>
> 
>


-- 
*Chiran Fernando*
Software Engineer | WSO2

Email : chi...@wso2.com
Mobile : +94716007376


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


Re: [Dev] CORS Error

2018-06-25 Thread shibsankar
Okay.

I tried with  setting the 'content-type' header to
'application/x-www-form-urlencoded'
and make the call.

still  received same error.

also  tried  allowing 9443 for this and make this call .

still  received same error.

*Please see the error message attached.*

Regards
Shib





On Mon, Jun 18, 2018 at 8:36 AM, Prakhash Sivakumar 
wrote:

>
>
> On Fri, Jun 15, 2018 at 5:21 PM Farasath Ahamed 
> wrote:
>
>>
>>
>> On Thu, Jun 14, 2018 at 3:32 PM, shibsankar  wrote:
>>
>>> *grant_type=password.*
>>>
>>>
>>>
>>> For your convenience, I  am providing the Angular JS relevant code
>>>
>>>
>>> *// from Angular Controller js*
>>>
>>> var dataObj="grant_type=password&username=x&password=
>>> x&scope=openid";
>>>
>>>  Service.callTokenAPI(dataObj)
>>> .then(function onSuccess(response) {
>>> console.log("Success");
>>> console.log("result  = " + JSON.stringify(response));
>>> }, function onFailure(error) {
>>> console.log("failure");
>>> });
>>>
>>>
>>>
>>> *//from Service.js*
>>>
>>> var callTokenAPI = function (dataObj) {
>>> console.log("Call server dataObj =" + angular.toJson(dataObj));
>>> var secret=clientKey+":"+clientPass;
>>> var base64Encoded= btoa(secret);
>>> console.log("base64Encoded="+base64Encoded);
>>> return $http({
>>> url: tokenAPI,
>>> method: 'POST',
>>> data: dataObj,
>>> headers: { "Content-Type": "application/json;charset=utf-8"
>>> ,"Authorization":base64Encoded}
>>> });
>>> };
>>>
>>>
>> Can you try setting the 'content-type' header to 
>> 'application/x-www-form-urlencoded'?
>> (Check [1])
>>
>> [1] https://security.stackexchange.com/questions/
>> 187311/why-cors-preflight-is-not-available-for-post-
>> requests-when-content-type-is-appli/187312#187312
>>
>
> This should work. Also I think the reason for your observation is when
> adding CORS related configs in tokenapi.xml and revokeapi.xml files, the
> CORS allowing is not getting applied for the inbound and outbound requests
> which uses 8280 and 8243 ports, just to confirm can you please try allowing
> 9443 for this and make this call ?
>
>>
>>
>>>
>>> When I  run this I am getting CORS error screenshot shared earlier.
>>>
>>> Regards
>>> Shib
>>>
>>>
>>> On Thu, Jun 14, 2018 at 3:00 PM, Rushmin Fernando 
>>> wrote:
>>>
 Could you please let us know the grant type you are using here. I would
 like to know whether this is a valid use case.

 On Thu, Jun 14, 2018 at 2:54 PM shibsankar  wrote:

> Yes.  I get  same CORS error with the correct endpoint, which is */*
> *token*
>
> screenshot attached.
>
> Regards
> Shib
>
> On Thu, Jun 14, 2018 at 2:42 PM, Rushmin Fernando 
> wrote:
>
>> In the console logs, it says */toekn, *which is wrong spellings.
>>
>> Do you get the same CORS error with the correct endpoint, which is
>> */**token *?
>>
>> On Thu, Jun 14, 2018 at 2:26 PM shibsankar  wrote:
>>
>>> I am receiving CORS Error when I call the WSO2 token API  from
>>> Angular JS application.
>>>
>>> How do you fix this?
>>>
>>> Regards
>>> Shib(9831418066)
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *Best Regards*
>>
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> mobile : +94775615183
>>
>>
>>
>

 --
 *Best Regards*

 *Rushmin Fernando*
 *Technical Lead*

 WSO2 Inc.  - Lean . Enterprise . Middleware

 mobile : +94775615183



>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Farasath Ahamed
>> Senior Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Prakhash Sivakumar
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Mobile : +94771510080
> Blog : https://medium.com/@PrakhashS
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release of WSO2 Stream Processor 4.2.0 RC2

2018-06-25 Thread Nisala Nanayakkara
Hi all,

I have tested the following functionality and found no issues.

   - Dashboard creation/deletion/modification
   - Creating widgets with Dynamic queries
   - Tested the editor samples
   - Tested the HA setup with DB & File persistence

[+] Stable - go ahead and release

Thanks,
Nisala

On Fri, Jun 22, 2018 at 12:32 PM Raveen Rathnayake  wrote:

> Hi all,
>
> I have tested the following functionality and found no issues.
>
>- Siddhi Editor basic functions
>- Drag and drop function - From Design to Code view
>
> [+] Stable - go ahead and release
>
> Thanks,
> Raveen.
>
> On Fri, Jun 22, 2018 at 10:57 AM Maduranga Siriwardena 
> wrote:
>
>> Hi All,
>>
>> I have tested the following functionality,
>>
>>- HTTP source (with/without authentication, with/without ssl)
>>- HTTP request source and response sink (with/without authentication, 
>> with/without
>>ssl)
>>- Custom json mapping with json path and trp properties
>>
>> [+] Stable - go ahead and release
>>
>> Thanks,
>> Maduranga.
>>
>>
>> On Fri, Jun 22, 2018 at 9:23 AM Charuka Karunanayake 
>> wrote:
>>
>>> Hi all,
>>>
>>> I tested the following
>>>
>>>- Widget generation wizard with Websocket provider
>>>- Dashboard Designer and Viewer
>>>- Mongo DB sample with Mongo db v3.6.5
>>>- Websocket Sink
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Regards,
>>> Charuka
>>>
>>> On Fri, Jun 22, 2018 at 12:48 AM Ramindu De Silva 
>>> wrote:
>>>
 Hi all,

 I tested the following

- Event simulator - Regular, CSV, Database
- Dashboard
- Template Manager
- Kafka Source and Sink (Hello Kafka Sample) with Kafka version,
0.11 and 1.1.0

 [+] Stable - go ahead and release

 Best Regards,
 Ramindu.

 On Thu, Jun 21, 2018 at 8:12 PM, Chiran Fernando 
 wrote:

> Hi all,
>
> I have  tested Fully Distributed Deployment functionality locally and
> on kubernetes.
>
> [+] Stable - go ahead and release
>
> On Thu, Jun 21, 2018 at 5:00 PM Eranga Liyanage 
> wrote:
>
>> Hi All
>>
>> I have tested the basic functionality of the following on Windows 10.
>>
>>- Editor simulator/debug/drag & drop
>>- Dashboard
>>- Portal
>>
>> [+] Stable - go ahead and release
>>
>> Best regards
>> Eranga
>>
>> On Thu, Jun 21, 2018 at 2:43 PM Gowthamy Vaseekaran <
>> gowth...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have tested the following and found no issues,
>>>
>>>1. Monitoring Dashboard
>>>   1. Distributed Deployment
>>>   2. Single Node Deployment
>>>   3. HA Deployment
>>>
>>>
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Regards,
>>> Gowthamy
>>>
>>>
>>> On Thu, Jun 21, 2018 at 12:22 PM, Senthuran Ambalavanar <
>>> senthu...@wso2.com> wrote:
>>>
 Hi all,

 I have tested the following, and have not found any issues.
 1. Business Rules Manager
 2. Siddhi Drag & Drop Editor - Code to Design view
 3. Widgets Generation Wizard - Creating a widget with RDBMS Batch
 Data Provider

 [+] Stable - go ahead and release

 Best Regards,
 Senthuran.

 On Thu, Jun 21, 2018 at 11:39 AM Nadeeshani Pathirennehelage <
 nadeesha...@wso2.com> wrote:

> Hi All,
>
> +1 from Platform Security Team.
>
> Thank You,
> Nadeeshani.
>
> On Wed, Jun 20, 2018 at 10:32 PM, Niveathika Rajendran <
> niveath...@wso2.com> wrote:
>
>> Hi,
>>
>> I have tested the following and found no issues,
>>
>> 1. HTTP Analytics Dashboard
>> 2. Twitter Dashboard
>> 3. Authentication & Authorization
>> 4. Generated widget with dynamic query
>> 5. Dashboard with pub-sub widgets
>>
>> [+] Stable - go ahead and release
>>
>> Best Regards,
>> *Niveathika Rajendran,*
>> *Software Engineer.*
>> *Mobile : +94 077 903 7536*
>>
>>
>>
>>
>>
>> On Wed, Jun 20, 2018 at 9:57 PM Nisala Nanayakkara <
>> nis...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> WSO2 Stream Processor team is pleased to announce the second
>>> release candidate of WSO2 Stream Processor 4.2.0.
>>>
>>> WSO2 Stream Processor is an open source embodiment of the WSO2
>>> Analytics platform, of which the real-time, incremental & 
>>> intelligent data
>>> processing capabilities let digital businesses create actionable 
>>> business
>>> insights and data products.
>>>
>>> Please find the improvements and fixes related to this release
>>> he

Re: [Dev] [Architecture] [VOTE] Release of WSO2 Stream Processor 4.2.0 RC2

2018-06-25 Thread Moiz Mansoor
Hi All,

I have tested the following functionality and found no issues.

   - Drag and drop function - From Design to Code view

[+] Stable - go ahead and release

Best Regards,
Moiz.


On Mon, Jun 25, 2018 at 3:31 PM Nisala Nanayakkara  wrote:

> Hi all,
>
> I have tested the following functionality and found no issues.
>
>- Dashboard creation/deletion/modification
>- Creating widgets with Dynamic queries
>- Tested the editor samples
>- Tested the HA setup with DB & File persistence
>
> [+] Stable - go ahead and release
>
> Thanks,
> Nisala
>
> On Fri, Jun 22, 2018 at 12:32 PM Raveen Rathnayake 
> wrote:
>
>> Hi all,
>>
>> I have tested the following functionality and found no issues.
>>
>>- Siddhi Editor basic functions
>>- Drag and drop function - From Design to Code view
>>
>> [+] Stable - go ahead and release
>>
>> Thanks,
>> Raveen.
>>
>> On Fri, Jun 22, 2018 at 10:57 AM Maduranga Siriwardena <
>> madura...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have tested the following functionality,
>>>
>>>- HTTP source (with/without authentication, with/without ssl)
>>>- HTTP request source and response sink (with/without
>>>authentication, with/without ssl)
>>>- Custom json mapping with json path and trp properties
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks,
>>> Maduranga.
>>>
>>>
>>> On Fri, Jun 22, 2018 at 9:23 AM Charuka Karunanayake 
>>> wrote:
>>>
 Hi all,

 I tested the following

- Widget generation wizard with Websocket provider
- Dashboard Designer and Viewer
- Mongo DB sample with Mongo db v3.6.5
- Websocket Sink

 [+] Stable - go ahead and release

 Regards,
 Charuka

 On Fri, Jun 22, 2018 at 12:48 AM Ramindu De Silva 
 wrote:

> Hi all,
>
> I tested the following
>
>- Event simulator - Regular, CSV, Database
>- Dashboard
>- Template Manager
>- Kafka Source and Sink (Hello Kafka Sample) with Kafka version,
>0.11 and 1.1.0
>
> [+] Stable - go ahead and release
>
> Best Regards,
> Ramindu.
>
> On Thu, Jun 21, 2018 at 8:12 PM, Chiran Fernando 
> wrote:
>
>> Hi all,
>>
>> I have  tested Fully Distributed Deployment functionality locally and
>> on kubernetes.
>>
>> [+] Stable - go ahead and release
>>
>> On Thu, Jun 21, 2018 at 5:00 PM Eranga Liyanage 
>> wrote:
>>
>>> Hi All
>>>
>>> I have tested the basic functionality of the following on Windows 10.
>>>
>>>- Editor simulator/debug/drag & drop
>>>- Dashboard
>>>- Portal
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Best regards
>>> Eranga
>>>
>>> On Thu, Jun 21, 2018 at 2:43 PM Gowthamy Vaseekaran <
>>> gowth...@wso2.com> wrote:
>>>
 Hi All,

 I have tested the following and found no issues,

1. Monitoring Dashboard
   1. Distributed Deployment
   2. Single Node Deployment
   3. HA Deployment



 [+] Stable - go ahead and release

 Regards,
 Gowthamy


 On Thu, Jun 21, 2018 at 12:22 PM, Senthuran Ambalavanar <
 senthu...@wso2.com> wrote:

> Hi all,
>
> I have tested the following, and have not found any issues.
> 1. Business Rules Manager
> 2. Siddhi Drag & Drop Editor - Code to Design view
> 3. Widgets Generation Wizard - Creating a widget with RDBMS Batch
> Data Provider
>
> [+] Stable - go ahead and release
>
> Best Regards,
> Senthuran.
>
> On Thu, Jun 21, 2018 at 11:39 AM Nadeeshani Pathirennehelage <
> nadeesha...@wso2.com> wrote:
>
>> Hi All,
>>
>> +1 from Platform Security Team.
>>
>> Thank You,
>> Nadeeshani.
>>
>> On Wed, Jun 20, 2018 at 10:32 PM, Niveathika Rajendran <
>> niveath...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I have tested the following and found no issues,
>>>
>>> 1. HTTP Analytics Dashboard
>>> 2. Twitter Dashboard
>>> 3. Authentication & Authorization
>>> 4. Generated widget with dynamic query
>>> 5. Dashboard with pub-sub widgets
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Best Regards,
>>> *Niveathika Rajendran,*
>>> *Software Engineer.*
>>> *Mobile : +94 077 903 7536*
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Jun 20, 2018 at 9:57 PM Nisala Nanayakkara <
>>> nis...@wso2.com> wrote:
>>>
 Hi all,

 WSO2 Stream Processor team is pleased to announce the second
 release candidate 

Re: [Dev] [Architecture] [VOTE] Release of WSO2 Stream Processor 4.2.0 RC2

2018-06-25 Thread Sajith Ravindra
Hi all,

I have tested,

- Editor designer view, stream/feed simulation
- Business rule editor and template editor
- HTTP analytics dashboard
- Tracing

[+] - Stable - go ahead and release.

Thanks
*,Sajith Ravindra*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/


On Mon, Jun 25, 2018 at 4:59 PM, Moiz Mansoor  wrote:

> Hi All,
>
> I have tested the following functionality and found no issues.
>
>- Drag and drop function - From Design to Code view
>
> [+] Stable - go ahead and release
>
> Best Regards,
> Moiz.
>
>
> On Mon, Jun 25, 2018 at 3:31 PM Nisala Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> I have tested the following functionality and found no issues.
>>
>>- Dashboard creation/deletion/modification
>>- Creating widgets with Dynamic queries
>>- Tested the editor samples
>>- Tested the HA setup with DB & File persistence
>>
>> [+] Stable - go ahead and release
>>
>> Thanks,
>> Nisala
>>
>> On Fri, Jun 22, 2018 at 12:32 PM Raveen Rathnayake 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have tested the following functionality and found no issues.
>>>
>>>- Siddhi Editor basic functions
>>>- Drag and drop function - From Design to Code view
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks,
>>> Raveen.
>>>
>>> On Fri, Jun 22, 2018 at 10:57 AM Maduranga Siriwardena <
>>> madura...@wso2.com> wrote:
>>>
 Hi All,

 I have tested the following functionality,

- HTTP source (with/without authentication, with/without ssl)
- HTTP request source and response sink (with/without
authentication, with/without ssl)
- Custom json mapping with json path and trp properties

 [+] Stable - go ahead and release

 Thanks,
 Maduranga.


 On Fri, Jun 22, 2018 at 9:23 AM Charuka Karunanayake 
 wrote:

> Hi all,
>
> I tested the following
>
>- Widget generation wizard with Websocket provider
>- Dashboard Designer and Viewer
>- Mongo DB sample with Mongo db v3.6.5
>- Websocket Sink
>
> [+] Stable - go ahead and release
>
> Regards,
> Charuka
>
> On Fri, Jun 22, 2018 at 12:48 AM Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> I tested the following
>>
>>- Event simulator - Regular, CSV, Database
>>- Dashboard
>>- Template Manager
>>- Kafka Source and Sink (Hello Kafka Sample) with Kafka version,
>>0.11 and 1.1.0
>>
>> [+] Stable - go ahead and release
>>
>> Best Regards,
>> Ramindu.
>>
>> On Thu, Jun 21, 2018 at 8:12 PM, Chiran Fernando 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have  tested Fully Distributed Deployment functionality locally
>>> and on kubernetes.
>>>
>>> [+] Stable - go ahead and release
>>>
>>> On Thu, Jun 21, 2018 at 5:00 PM Eranga Liyanage 
>>> wrote:
>>>
 Hi All

 I have tested the basic functionality of the following on Windows
 10.

- Editor simulator/debug/drag & drop
- Dashboard
- Portal

 [+] Stable - go ahead and release

 Best regards
 Eranga

 On Thu, Jun 21, 2018 at 2:43 PM Gowthamy Vaseekaran <
 gowth...@wso2.com> wrote:

> Hi All,
>
> I have tested the following and found no issues,
>
>1. Monitoring Dashboard
>   1. Distributed Deployment
>   2. Single Node Deployment
>   3. HA Deployment
>
>
>
> [+] Stable - go ahead and release
>
> Regards,
> Gowthamy
>
>
> On Thu, Jun 21, 2018 at 12:22 PM, Senthuran Ambalavanar <
> senthu...@wso2.com> wrote:
>
>> Hi all,
>>
>> I have tested the following, and have not found any issues.
>> 1. Business Rules Manager
>> 2. Siddhi Drag & Drop Editor - Code to Design view
>> 3. Widgets Generation Wizard - Creating a widget with RDBMS Batch
>> Data Provider
>>
>> [+] Stable - go ahead and release
>>
>> Best Regards,
>> Senthuran.
>>
>> On Thu, Jun 21, 2018 at 11:39 AM Nadeeshani Pathirennehelage <
>> nadeesha...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> +1 from Platform Security Team.
>>>
>>> Thank You,
>>> Nadeeshani.
>>>
>>> On Wed, Jun 20, 2018 at 10:32 PM, Niveathika Rajendran <
>>> niveath...@wso2.com> wrote:
>>>
 Hi,

 I have tested the following and found no issues,

 1. HTTP Analytics Dashboard
 2. Twitter Dashboar

Re: [Dev] [Architecture] [VOTE] Release of WSO2 Stream Processor 4.2.0 RC2

2018-06-25 Thread Nisala Nanayakkara
Hi all,

Thanks for testing WSO2 Stream Processor 4.2.0 RC2.

Since this vote passed with 13 [+1]s and 0 [-1]s, we’re hereby closing this
vote and proceeding with WSO2 Stream Processor 4.2.0 release.

Thanks,
Nisala

On Mon, Jun 25, 2018 at 5:38 PM Sajith Ravindra  wrote:

> Hi all,
>
> I have tested,
>
> - Editor designer view, stream/feed simulation
> - Business rule editor and template editor
> - HTTP analytics dashboard
> - Tracing
>
> [+] - Stable - go ahead and release.
>
> Thanks
> *,Sajith Ravindra*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> 
>
> On Mon, Jun 25, 2018 at 4:59 PM, Moiz Mansoor  wrote:
>
>> Hi All,
>>
>> I have tested the following functionality and found no issues.
>>
>>- Drag and drop function - From Design to Code view
>>
>> [+] Stable - go ahead and release
>>
>> Best Regards,
>> Moiz.
>>
>>
>> On Mon, Jun 25, 2018 at 3:31 PM Nisala Nanayakkara 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have tested the following functionality and found no issues.
>>>
>>>- Dashboard creation/deletion/modification
>>>- Creating widgets with Dynamic queries
>>>- Tested the editor samples
>>>- Tested the HA setup with DB & File persistence
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks,
>>> Nisala
>>>
>>> On Fri, Jun 22, 2018 at 12:32 PM Raveen Rathnayake 
>>> wrote:
>>>
 Hi all,

 I have tested the following functionality and found no issues.

- Siddhi Editor basic functions
- Drag and drop function - From Design to Code view

 [+] Stable - go ahead and release

 Thanks,
 Raveen.

 On Fri, Jun 22, 2018 at 10:57 AM Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi All,
>
> I have tested the following functionality,
>
>- HTTP source (with/without authentication, with/without ssl)
>- HTTP request source and response sink (with/without
>authentication, with/without ssl)
>- Custom json mapping with json path and trp properties
>
> [+] Stable - go ahead and release
>
> Thanks,
> Maduranga.
>
>
> On Fri, Jun 22, 2018 at 9:23 AM Charuka Karunanayake 
> wrote:
>
>> Hi all,
>>
>> I tested the following
>>
>>- Widget generation wizard with Websocket provider
>>- Dashboard Designer and Viewer
>>- Mongo DB sample with Mongo db v3.6.5
>>- Websocket Sink
>>
>> [+] Stable - go ahead and release
>>
>> Regards,
>> Charuka
>>
>> On Fri, Jun 22, 2018 at 12:48 AM Ramindu De Silva 
>> wrote:
>>
>>> Hi all,
>>>
>>> I tested the following
>>>
>>>- Event simulator - Regular, CSV, Database
>>>- Dashboard
>>>- Template Manager
>>>- Kafka Source and Sink (Hello Kafka Sample) with Kafka version,
>>>0.11 and 1.1.0
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Best Regards,
>>> Ramindu.
>>>
>>> On Thu, Jun 21, 2018 at 8:12 PM, Chiran Fernando 
>>> wrote:
>>>
 Hi all,

 I have  tested Fully Distributed Deployment functionality locally
 and on kubernetes.

 [+] Stable - go ahead and release

 On Thu, Jun 21, 2018 at 5:00 PM Eranga Liyanage 
 wrote:

> Hi All
>
> I have tested the basic functionality of the following on Windows
> 10.
>
>- Editor simulator/debug/drag & drop
>- Dashboard
>- Portal
>
> [+] Stable - go ahead and release
>
> Best regards
> Eranga
>
> On Thu, Jun 21, 2018 at 2:43 PM Gowthamy Vaseekaran <
> gowth...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have tested the following and found no issues,
>>
>>1. Monitoring Dashboard
>>   1. Distributed Deployment
>>   2. Single Node Deployment
>>   3. HA Deployment
>>
>>
>>
>> [+] Stable - go ahead and release
>>
>> Regards,
>> Gowthamy
>>
>>
>> On Thu, Jun 21, 2018 at 12:22 PM, Senthuran Ambalavanar <
>> senthu...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I have tested the following, and have not found any issues.
>>> 1. Business Rules Manager
>>> 2. Siddhi Drag & Drop Editor - Code to Design view
>>> 3. Widgets Generation Wizard - Creating a widget with RDBMS
>>> Batch Data Provider
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Best Regards,
>>> Senthuran.
>>>
>>> On Thu, Jun 21, 2018 at 11:39 AM Nadeeshani Pathirennehelage <
>>> nadeesha...

[Dev] Spark SQL Context is not available

2018-06-25 Thread Ching Tien Shi
Hi all,

When I clustered two IS Analytics-5.5.0 nodes using AWS membership scheme,
I get the following error message.

*Error while executing query : CREATE TEMPORARY TABLE
isSessionAnalyticsPerMinute USING CarbonAnalytics OPTIONS (tableName
"org_wso2_is_analytics_stream_SessionStatPerMinute", schema "meta_tenantId
INT -i, bucketId LONG, bucketStart LONG -i, bucketEnd LONG -i, year INT,
month INT, day INT, hour INT, minute INT, activeSessionCount LONG,
newSessionCount LONG, terminatedSessionCount LONG, _timestamp LONG -i",
primaryKeys "meta_tenantId, bucketId, bucketStart, bucketEnd",
incrementalParams "isSessionAnalyticsPerHour, HOUR", mergeSchema "false")*
*org.wso2.carbon.analytics.spark.core.exception.AnalyticsExecutionException:
Exception in executing query CREATE TEMPORARY TABLE
isSessionAnalyticsPerMinute USING CarbonAnalytics OPTIONS (tableName
"org_wso2_is_analytics_stream_SessionStatPerMinute", schema "meta_tenantId
INT -i, bucketId LONG, bucketStart LONG -i, bucketEnd LONG -i, year INT,
month INT, day INT, hour INT, minute INT, activeSessionCount LONG,
newSessionCount LONG, terminatedSessionCount LONG, _timestamp LONG -i",
primaryKeys "meta_tenantId, bucketId, bucketStart, bucketEnd",
incrementalParams "isSessionAnalyticsPerHour, HOUR", mergeSchema "false")*
*at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:764)*
*at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:721)*
*at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:201)*
*at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:151)*
*at
org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:60)*
*at
org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)*
*at org.quartz.core.JobRunShell.run(JobRunShell.java:213)*
*at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)*
*at java.util.concurrent.FutureTask.run(FutureTask.java:266)*
*at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)*
*at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)*
*at java.lang.Thread.run(Thread.java:745)*
*Caused by:
org.wso2.carbon.analytics.spark.core.exception.AnalyticsExecutionException:
Spark SQL Context is not available. Check if the cluster has instantiated
properly.*
*at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:755)*
*... 11 more*

This is similar to the known error, which is mentioned in [1]. Even though
it is expected to occur a few times, this error keeps occurring repeatedly
for me.

I faced this same issue while trying to cluster two EI Analytics nodes too.

Any suggestions are appreciated.

[1] https://docs.wso2.com/display/IS550/Setting+Up+Deployment+Pattern+2

Ching Shi
Software Engineer
WSO2

Email: ch...@wso2.com
Mobile: +94770186272
Web: http://wso2.com
[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] RestConstant.SYNAPSE_REST_API_VERSION

2018-06-25 Thread Gimantha Bandara
Hi,
Can we use this property (get-property('SYNAPSE_REST_API_VERSION ')) in ESB
4.9.0 to get the version of an API? I have defined a uri-templete (
{version} ) with the version placeholder. But it is not picking up the
version and I cannot access the version
via RestConstant.SYNAPSE_REST_API_VERSION. Or this is only used in APIM?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] RestConstant.SYNAPSE_REST_API_VERSION

2018-06-25 Thread Rukshan Premathunga
Hi Gimantha,

yes we have used it to get the version of API. So you defined the version
in uri-template and want to get the value of it in handler level? If it is
the case, i think you have to get it as a property.

Please check this[1]

[1]
https://stackoverflow.com/questions/27295902/how-to-read-query-param-in-wso2-esb-4-8-or-above

Thanks and Regards

On Tue, Jun 26, 2018 at 7:24 AM, Gimantha Bandara  wrote:

> Hi,
> Can we use this property (get-property('SYNAPSE_REST_API_VERSION ')) in
> ESB 4.9.0 to get the version of an API? I have defined a uri-templete (
> {version} ) with the version placeholder. But it is not picking up the
> version and I cannot access the version via 
> RestConstant.SYNAPSE_REST_API_VERSION.
> Or this is only used in APIM?
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
+94711822074
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Error when trying to setup micro-gw

2018-06-25 Thread Dinusha Senanayaka
Hi APIM team,

Executed following command as per  doc [2]  to build generated source and
got error [1]. Do we need to include any libraries ? (using micro-gw alpha
release).

micro-gw build -l marketing_store


[1]  could not find package wso2/gateway:*

[2]
https://docs.wso2.com/display/AM2xx/Configuring+the+API+Microgateway#ConfiguringtheAPIMicrogateway-GeneratingaMicrogatewaydistribution

Regards,
Dinusha

-- 
Dinusha Dilrukshi
Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94764069991
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Error when trying to setup micro-gw

2018-06-25 Thread Dinusha Dissanayake
Hi Dinusha,

Can you check if micro-gw-resources/projects//target/ contains
the relevant distribution and zip with the corresponding lable name?

I got the same error, which I think is expected ( please correct me if I am
wrong), and yet I could see the relevant artifacts and run them without any
issue.

Thanks,
DinushaD

On Tue, Jun 26, 2018 at 11:13 AM, Dinusha Senanayaka 
wrote:

> Hi APIM team,
>
> Executed following command as per  doc [2]  to build generated source and
> got error [1]. Do we need to include any libraries ? (using micro-gw alpha
> release).
>
> micro-gw build -l marketing_store
>
>
> [1]  could not find package wso2/gateway:*
>
> [2] https://docs.wso2.com/display/AM2xx/Configuring+the+API+Microgateway#
> ConfiguringtheAPIMicrogateway-GeneratingaMicrogatewaydistribution
>
> Regards,
> Dinusha
>
> --
> Dinusha Dilrukshi
> Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94764069991
> Blog: http://dinushasblog.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Dinusha Dissanayake
Software Engineer
WSO2 Inc
Mobile: +94712939439

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


Re: [Dev] [APIM] Error when trying to setup micro-gw

2018-06-25 Thread Harsha Kumara
On Tue, Jun 26, 2018 at 11:14 AM Dinusha Senanayaka 
wrote:

> Hi APIM team,
>
> Executed following command as per  doc [2]  to build generated source and
> got error [1]. Do we need to include any libraries ? (using micro-gw alpha
> release).
>
> micro-gw build -l marketing_store
>
>
> [1]  could not find package wso2/gateway:*
>
This is harmless. I believe this is because packages not in the ballerina
central as build try to pull these packages.  Build command will execute
fine and distribution should be created.

>
> [2]
> https://docs.wso2.com/display/AM2xx/Configuring+the+API+Microgateway#ConfiguringtheAPIMicrogateway-GeneratingaMicrogatewaydistribution
>
> Regards,
> Dinusha
>
> --
> Dinusha Dilrukshi
> Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94764069991
> Blog: http://dinushasblog.blogspot.com/
>


-- 
Harsha Kumara
Associate Technical Lead, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Error when trying to setup micro-gw

2018-06-25 Thread Dinusha Senanayaka
Thanks Dinusha/Harsha. Build distribution has been created in target even
that error was there.

Regards,
Dinusha

On Tue, Jun 26, 2018 at 11:27 AM, Harsha Kumara  wrote:

>
>
> On Tue, Jun 26, 2018 at 11:14 AM Dinusha Senanayaka 
> wrote:
>
>> Hi APIM team,
>>
>> Executed following command as per  doc [2]  to build generated source and
>> got error [1]. Do we need to include any libraries ? (using micro-gw alpha
>> release).
>>
>> micro-gw build -l marketing_store
>>
>>
>> [1]  could not find package wso2/gateway:*
>>
> This is harmless. I believe this is because packages not in the ballerina
> central as build try to pull these packages.  Build command will execute
> fine and distribution should be created.
>
>>
>> [2] https://docs.wso2.com/display/AM2xx/Configuring+the+API+Microgateway#
>> ConfiguringtheAPIMicrogateway-GeneratingaMicrogatewaydistribution
>>
>> Regards,
>> Dinusha
>>
>> --
>> Dinusha Dilrukshi
>> Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94764069991
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
> --
> Harsha Kumara
> Associate Technical Lead, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
Dinusha Dilrukshi
Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94764069991
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev