设置 WSO2 ML 与 WSO2 DAS 之间的集成
Setting integration between WSO2 ML with WSO2 DAS
我尝试使用 WSO2 DAS 配置 WSO2 ML,将此数据源指向同一个 postgreSQL 数据库:
ANALYTICS_FS_DB
ANALYTICS_EVENT_STORE
ANALYTICS_PROCESSED_DATA_STORE
但是当我启动 WSO2 DAS 时,我看到了这个错误:
[2015-12-14 23:32:19,662] ERROR {org.wso2.carbon.analytics.eventsink.AnalyticsEventStoreDeployer} - Error while creating the table Or setting the schema for table: PoC_Atmosferav3_s
tream
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException: Error in adding records: Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setBinaryStream(int, InputStrea
m) is not yet implemented.
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.put(RDBMSAnalyticsRecordStore.java:146)
at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.writeTableInfo(AnalyticsDataServiceImpl.java:694)
at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.createTable(AnalyticsDataServiceImpl.java:431)
at org.wso2.carbon.analytics.api.CarbonAnalyticsAPI.createTable(CarbonAnalyticsAPI.java:123)
at org.wso2.carbon.analytics.eventsink.AnalyticsEventStoreDeployer.addEventStore(AnalyticsEventStoreDeployer.java:106)
at org.wso2.carbon.analytics.eventsink.AnalyticsEventStoreDeployer.deploy(AnalyticsEventStoreDeployer.java:76)
at org.wso2.carbon.analytics.eventsink.internal.AnalyticsEventSinkServerStartupObserver$PausedDeploymentHandler.run(AnalyticsEventSinkServerStartupObserver.java:82)
Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setBinaryStream(int, InputStream) is not yet implemented.
at org.postgresql.Driver.notImplemented(Driver.java:751)
at org.postgresql.jdbc4.AbstractJdbc4Statement.setBinaryStream(AbstractJdbc4Statement.java:127)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.populateStatementForAdd(RDBMSAnalyticsRecordStore.java:179)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.insertAndUpdateRecordsSimilarSequentially(RDBMSAnalyticsRecordStore.java:230)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.insertAndUpdateRecordsSimilar(RDBMSAnalyticsRecordStore.java:217)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.addRecordsSimilar(RDBMSAnalyticsRecordStore.java:165)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.put(RDBMSAnalyticsRecordStore.java:141)
... 6 more
有什么想法吗??
这可能是由于您复制到 repository/components/lib
目录的 jdbc 连接器版本不受支持。
我已尝试重现您的问题,但未能成功。我的情况没有错误。
我使用的版本如下
postgresql 9.4
connector postgresql-9.4.1208.jre7.jar
我尝试使用 WSO2 DAS 配置 WSO2 ML,将此数据源指向同一个 postgreSQL 数据库:
ANALYTICS_FS_DB
ANALYTICS_EVENT_STORE
ANALYTICS_PROCESSED_DATA_STORE
但是当我启动 WSO2 DAS 时,我看到了这个错误:
[2015-12-14 23:32:19,662] ERROR {org.wso2.carbon.analytics.eventsink.AnalyticsEventStoreDeployer} - Error while creating the table Or setting the schema for table: PoC_Atmosferav3_s
tream
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException: Error in adding records: Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setBinaryStream(int, InputStrea
m) is not yet implemented.
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.put(RDBMSAnalyticsRecordStore.java:146)
at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.writeTableInfo(AnalyticsDataServiceImpl.java:694)
at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.createTable(AnalyticsDataServiceImpl.java:431)
at org.wso2.carbon.analytics.api.CarbonAnalyticsAPI.createTable(CarbonAnalyticsAPI.java:123)
at org.wso2.carbon.analytics.eventsink.AnalyticsEventStoreDeployer.addEventStore(AnalyticsEventStoreDeployer.java:106)
at org.wso2.carbon.analytics.eventsink.AnalyticsEventStoreDeployer.deploy(AnalyticsEventStoreDeployer.java:76)
at org.wso2.carbon.analytics.eventsink.internal.AnalyticsEventSinkServerStartupObserver$PausedDeploymentHandler.run(AnalyticsEventSinkServerStartupObserver.java:82)
Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setBinaryStream(int, InputStream) is not yet implemented.
at org.postgresql.Driver.notImplemented(Driver.java:751)
at org.postgresql.jdbc4.AbstractJdbc4Statement.setBinaryStream(AbstractJdbc4Statement.java:127)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.populateStatementForAdd(RDBMSAnalyticsRecordStore.java:179)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.insertAndUpdateRecordsSimilarSequentially(RDBMSAnalyticsRecordStore.java:230)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.insertAndUpdateRecordsSimilar(RDBMSAnalyticsRecordStore.java:217)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.addRecordsSimilar(RDBMSAnalyticsRecordStore.java:165)
at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.put(RDBMSAnalyticsRecordStore.java:141)
... 6 more
有什么想法吗??
这可能是由于您复制到 repository/components/lib
目录的 jdbc 连接器版本不受支持。
我已尝试重现您的问题,但未能成功。我的情况没有错误。
我使用的版本如下
postgresql 9.4
connector postgresql-9.4.1208.jre7.jar