WSO2 DAS with Couchbase - wso2

I have tried to connect WSO2 with external sources like Oracle but I'm not able to do it with NoSQL Couchbase.
could you, please, guide me on how I can integrate WSO2 DAS with Couchbase ?
can we do it through Custom datasource?
Thanks

I am not familiar with WSO2, but if you can connect it to ODBC/JDBC, then there are drivers for Couchbase available from Simba - ODBC and JDBC for Couchbase (Note that ODBC/JDBC may not be as performant as direct Couchbase operations because of the translation that's going on)

Related

wso2 developer studio dss mongo data source type removed

I just downloaded WSO2 Developer Studio for Mac 64bit. I tried setting up a MongoDB data source. However, the MongoDB option no longer exists. Has WSO2 discontinued MongoDB support in DSS or is there some way to re-enable it?
WSO2 didn't discontinue MongoDB support in DSS 3.5.1. You can add Mongo DB data source in the data service. It's available in the management console as well.
Thanks,
Madhawa

WSO2 DAS with MongoDB

Is it possible to setup MongoDB as the analytic datasource in WSO2 DAS? I saw DAS support cassandra , HBase in analytics-datasources.xml script.
We have done a PR to support MongoDB in DAS. It is already included in the master branch, you can take a look at these PRs:
https://github.com/wso2/carbon-analytics/pull/225
And here:
https://github.com/wso2/carbon-data/pull/133
Best regards,
Out of the box, WSO2 Data Analytics Server (DAS) does not support MongoDB. However, we have written DAS in such a way that, it is easy to setup other databases such as MongoDB as your analytics data source.
The procedure is pretty simple and you just need to implement AnalyticsRecordStore interface. It is well documented and I hope you can easily understand it. Additionally, I would like to point out
CassandraAnalyticsRecordStore which is the Cassandra implementation of the AnalyticsRecordStore interface.
P.S. If you manage to implement the AnalyticsRecordStore interface for MongoDB, you are more than welcome to send a Pull Request to carbon-analytics repository.

ML integration with WSO2 Data Analytics Server

I tried in ML 1.1.0 create a new dataset from DAS, but the response is empty, for some reason the table/events in DAS not show in ML. I reviewed this documentation ( https://docs.wso2.com/display/ML100/Integration+with+WSO2+Data+Analytics+Server) but any result. I tested api /api/configs/das/tables and response is empty []
According to your question, it is not clear which DAS version you are testing with WSO2 ML.
Assuming you are using WSO2 DAS 3.0.0:
I tested this scenario using the embedded database (i.e. H2) which comes with WSO2 products. Also, please note that uploading data from DAS server works irrespective of the database system which configures with DAS and ML.
So in order to help you to debug your issue, I would like to highlight following points.
Did you properly configure all three databases, namely:
WSO2_ANALYTICS_FS_DB, WSO2_ANALYTICS_EVENT_STORE_DB and WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB. Please note that data sources in both ML and DAS should be pointed to the same database. For instance, data source WSO2_ANALYTICS_FS_DB in both ML and DAS should be correctly pointed to the same database.
Next, start both servers ( If you are running both servers on the same machine you have to offset ports in one of the servers).
Now go to your DAS server and create a test table.
Next, if you go to "Create Dataset" page, you will be able to see the newly created data table.
However, if you are using WSO2 DAS 3.0.1:
Presently, create dataset using DAS tables feature is not working with DAS 3.0.1. We have created a public JIRA [1] for this issues and once this is fixed we will notify you.
[1]. https://wso2.org/jira/browse/ML-312

Is WSO2 DAS the new name or successor product for WSO2 BAM?

We are evaluating the WSO2 API Manager 1.8.0 (WSO2 AM) together with the WSO2 Business Activity Monitor 2.5.0 (WSO2 BAM). From our support partner Yenlo we got the WSO2 recommendation to use WSO2 BAM 3.0 for new installation, because the changes from BAM 2.5.0 to BAM 3.0.0 are massive.
BAM 3.0 is not released yet (see the release plan in JIRA). But milestone 4 should be available.
But the only thing I can find is milestone 3 of BAM and milestone 4 of DAS (Data Analytics Server) as announced in this email. Also the change log of DAS points to JIRA issues from BAM.
Is DAS the new name for BAM?
Is DAS the new name for BAM?
Yes, with exsisting BAM features + all features of WSO2 CEP are also included additionally in WSO2 DAS.
Some of the content of current BAM also applicable to DAS such as Collect & Store any Type of Business Events, High Performance Data Capture Framework, Pre-Built Data Agents for all WSO2 Products, etc. But since DAS is a complete revamp of old BAM, there are core changes such as analytics engine is now based on spark, and pluggable storage architecture and not cassandra centric (DAS 3.0 will be having RDBMS and hbase connectors).
DAS also includes all WSO2 CEP features, therefore users can do both real time and batch based analysis. Basically it's kind of analytics platform.
The old BAM is mainly focused on batch analysis.
More information can be found in WSO2 DAS Documentation. Also DAS would be in the future include Machine Learning Features as well, and it is an another name for whole analytics platform
Keep in mind as far as I know DAS is not completely backward compatible with BAM. So if you start new from WSO2 AM 1.10.0, best way is to use DAS Version 3, not BAM.

Is there any guide for setting MongoDB as analysis DB of WSO2 BAM instead of Cassandra?

According the IT policy of our company, the Cassandra is not allowed to use since of some reason, I need to replace with MongoDB as the analysis DB of WSO2 Business Activity Monitor. Is there any documents for setting MongoDB on WSO2 BAM 2.4.1? many appreciate
Unfortunately, in the current version of BAM (2.4.1) MongoDB can not be used as a replacement to Cassandra.
MongoDB support is in the WSO2 BAM road-map and it will be available in the future.
Is there any particular reaseon why you would want to replace Cassandra with MongoDB in your implementation?