简体   繁体   English

WSO2 DAS与MongoDB

[英]WSO2 DAS with MongoDB

Is it possible to setup MongoDB as the analytic datasource in WSO2 DAS? 是否可以将MongoDB设置为WSO2 DAS中的分析数据源? I saw DAS support cassandra , HBase in analytics-datasources.xml script. 我在analytics-datasources.xml脚本中看到了DAS支持cassandra和HBase。

Out of the box, WSO2 Data Analytics Server (DAS) does not support MongoDB. WSO2 Data Analytics Server(DAS)开箱即用,不支持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. 但是,我们编写DAS的方式很容易将其他数据库(例如MongoDB)设置为您的分析数据源。

The procedure is pretty simple and you just need to implement AnalyticsRecordStore interface. 该过程非常简单,您只需要实现AnalyticsRecordStore接口。 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. 此外,我想指出CassandraAnalyticsRecordStore ,它是AnalyticsRecordStore接口的Cassandra实现。

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. PS:如果您设法为MongoDB实现AnalyticsRecordStore接口,我们非常欢迎向碳分析存储库发送“拉取请求”。

We have done a PR to support MongoDB in DAS. 我们已经完成了PR,以在DAS中支持MongoDB。 It is already included in the master branch, you can take a look at these PRs: 它已经包含在master分支中,您可以查看以下PR:

https://github.com/wso2/carbon-analytics/pull/225 https://github.com/wso2/carbon-analytics/pull/225

And here: 和这里:

https://github.com/wso2/carbon-data/pull/133 https://github.com/wso2/carbon-data/pull/133

Best regards, 最好的祝福,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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