1

我尝试使用 WSO2 DAS 配置 WSO2 ML,将此数据源指向相同的 postgreSQL DB:

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

任何想法??

4

1 回答 1

1

这可能是由于您复制到repository/components/lib目录中的 jdbc 连接器版本不受支持。

我试图重现您的问题,但我无法重现。我的情况没有错误。

我使用的版本如下

postgresql 9.4
connector postgresql-9.4.1208.jre7.jar
于 2016-06-28T09:04:59.260 回答