简体   繁体   中英

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.

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.

PS If you manage to implement the AnalyticsRecordStore interface for MongoDB, you are more than welcome to send a Pull Request to carbon-analytics repository.

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,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM