I think in the Siddhi case, we were going to use the ML REST API. AFAIK CEP
extension supports both modes.

On Tue, Jun 16, 2015 at 4:24 PM, Mohanadarshan Vivekanandalingam <
[email protected]> wrote:

> Hi Suho & all,
>
> Have we decided on how we are going to run ML related operations in
> Storm.. If ML features are required for the ML extension, then what is the
> approach to run the ML extension in Siddhi..
>
> Thanks,
> Mohan
>
>
> On Tue, Jun 16, 2015 at 4:50 AM, Manorama Perera <[email protected]>
> wrote:
>
>> Hi,
>>
>> Please find the PR[1] to fix the above issue.
>>
>> [1] https://github.com/wso2/product-cep/pull/110
>>
>> Thanks.
>>
>> On Tue, Jun 16, 2015 at 10:43 AM, Manorama Perera <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> An exception[1] is thrown at the server startup when ML features are
>>> installed in CEP 4.0.0 Alpha.
>>>
>>> The issue here is, there are two *WSO2ML_DB* datasources are
>>> initialized at the server startup when ML features are installed.
>>>
>>> In [2], *WSO2ML_DB* datasource has been added to the *master-datasources.xml
>>> in cep*.
>>> But when installing ML features, ml-datasoures.xml file is copied into
>>> the repository/conf/datasources. This file also contains WSO2ML_DB
>>> datasource.
>>>
>>> The exception is thrown when the second WSO2ML_DB datasource is
>>> initialized. I've commented the WSO2ML_DB from master-datasources.xml, then
>>> the exception is not there.
>>>
>>> [1]
>>> [2015-06-16 10:00:24,855] ERROR {org.wso2.carbon.ndatasource.
>>> core.internal.DataSourceServiceComponent} -  Error in intializing
>>> system data sources: Error in initializing system data sources: Error in
>>> initializing system data sources at '/home/manorama/Products/CEP/
>>> wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml' -
>>> System datasource WSO2ML_DBcan not be updated.
>>> org.wso2.carbon.ndatasource.common.DataSourceException: Error in
>>> initializing system data sources: Error in initializing system data sources
>>> at
>>> '/home/manorama/Products/CEP/wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml'
>>> - System datasource WSO2ML_DBcan not be updated.
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:168)
>>> at
>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:192)
>>> at
>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:178)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:343)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>>> at
>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>>> at
>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>> at
>>> org.wso2.carbon.securevault.internal.SecretManagerInitializerComponent.activate(SecretManagerInitializerComponent.java:48)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>>> at
>>> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
>>> at
>>> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
>>> at
>>> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
>>> at
>>> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
>>> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
>>> at java.lang.Thread.run(Thread.java:722)
>>> Caused by: org.wso2.carbon.ndatasource.common.DataSourceException: Error
>>> in initializing system data sources at
>>> '/home/manorama/Products/CEP/wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml'
>>> - System datasource WSO2ML_DBcan not be updated.
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:188)
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:164)
>>> ... 40 more
>>> Caused by: org.wso2.carbon.ndatasource.common.DataSourceException:
>>> System datasource WSO2ML_DBcan not be updated.
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:344)
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
>>> ... 41 more
>>>
>>> [2]
>>> https://github.com/wso2/product-cep/commit/355c60e860c2ff555a0b6ec82ef33714aecba932
>>>
>>>
>>> Thanks.
>>>
>>> --
>>> Manorama Perera
>>> Software Engineer
>>> WSO2, Inc.;  http://wso2.com/
>>> Mobile : +94716436216
>>>
>>
>>
>>
>> --
>> Manorama Perera
>> Software Engineer
>> WSO2, Inc.;  http://wso2.com/
>> Mobile : +94716436216
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: [email protected]
> phone:(+94) 771117673
>



-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to