WSO2 API Manager 2.1分析 - 连接到Oracle DB时无法启动

时间:2017-07-11 13:25:42

标签: wso2 wso2-am

我正在使用指定的模式部署WSO2 API Manager 2.1和Analytics - https://github.com/wso2/docker-apim/tree/master/docker-compose/pattern-3

此处的所有组件 - nginx,Publisher,Store,Traffic Manager,Gateway Worker,Gateway Manager,Key Manager和Analytics都部署为单独的docker容器。 当我启动这些容器时,它工作正常,默认情况下它使用mysql服务器存储所有数据。

但是根据我们的要求,我们必须使用Oracle DB,因此,我们在那里创建了具有所有必需权限的用户,然后运行oracle脚本,最后逐个启动所有容器。 除了Analytics,我们为两个数据源创建了两个单独的用户 - WSO2_ANALYTICS_EVENT_STORE_DB和WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB(Didnt为这些运行任何脚本)。

现在我们遇到的问题是Analytics COntainer无法启动并抛出错误 -

[2017-07-11 12:53:54,017] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - 启动WSO2碳... [2017-07-11 12:53:54,017] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - 操作系统:Linux 4.8.0-53-generic,amd64 [2017-07-11 12:53:54,017] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java主页:/ mnt / jdk-7u80 / jre [2017-07-11 12:53:54,017] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java版本:1.7.0_80 [2017-07-11 12:53:54,017] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM:Java HotSpot(TM)64位服务器VM 24.80-b11,Oracle Corporation [2017-07-11 12:53:54,018] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home:/mnt/186.12.12.12/wso2am-analytics-2.1.0 [2017-07-11 12:53:54,018] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java临时目录:/mnt/186.12.12.12/wso2am-analytics-2.1.0/tmp [2017-07-11 12:53:54,018] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - 用户:root,en-US,GMT

[2017-07-11 12:54:34,104] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - 为租户更新权限缓存-1234 [2017-07-11 12:54:34,235] INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS端口:9444 [2017-07-11 12:54:34,235] INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP端口:9764

[2017-07-11 12:54:36,547] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - 已部署的webapp:StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ analytics] .File [/mnt/186.12.12.12/wso2am-analytics-2.1.0/repository/deployment/server/webapps/analytics.war] [2017-07-11 12:54:36,593] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - 已部署的webapp:StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ inputwebsocket] .File [/ mnt /186.12.12.12/wso2am-analytics-2.1.0/repository/deployment/server/webapps/inputwebsocket.war] [2017-07-11 12:54:36,622] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - 已部署的webapp:StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ outputwebsocket] .File [/ mnt /186.12.12.12/wso2am-analytics-2.1.0/repository/deployment/server/webapps/outputwebsocket.war] [ [2017-07-11 12:54:11816] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - 执行计划部署保持不活动状态:APIMAnalytics-RequestSummarizer-RequestSummarizer-realtime1.siddhiql,依赖关系验证异常:流org.wso2.apimgt.statistics.requestsPerMinPerKeyStream:1.0.0不存在 [2017-07-11 12:54:11486] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - 执行计划部署保持不活动状态:APIMAnalytics-UnusualIPAccessTemplate-UnusualIPAccessAlert-realtime1.siddhiql,依赖关系验证异常:流org.wso2.apimgt.statistics.perMinuteRequest:1.0.0不存在 [2017-07-11 12:54:43,418] INFO {org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} - Thrift Server从0.0.0.0开始 [2017-07-11 12:54:43,446] INFO {org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} - Thrift SSL端口:7712 [2017-07-11 12:54:nOR53] INFO {org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} - Thrift port:7612 [2017-07-11 12:54:23277] INFO {org.apache.tomcat.util.net.NioSelectorPool} - 使用共享选择器进行servlet写/读 [2017-07-11 12:54:nn5555] INFO {org.apache.tomcat.util.net.NioSelectorPool} - 使用共享选择器进行servlet写/读 [2017-07-11 12:54:43,408] INFO {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} - 以STANDALONE模式开始的任务服务...... [2017-07-11 12:54:44,130] ERROR {org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent} - 激活分析数据服务时出错:null 了java.lang.RuntimeException         at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore $ RDBMSResultSetIterator.next(RDBMSAnalyticsRecordStore.java:881)         在org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore $ RDBMSResultSetIterator.hasNext(RDBMSAnalyticsRecordStore.java:843)         在org.apache.commons.collections.IteratorUtils.toList(IteratorUtils.java:848)         在org.apache.commons.collections.IteratorUtils.toList(IteratorUtils.java:825)         在org.wso2.carbon.analytics.datasource.core.util.GenericUtils.listRecords(GenericUtils.java:284)

    [2017-07-11 12:54:55,566]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2017-07-11 12:55:05,564] ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} - 为-1234删除错误格式化的事件 org.wso2.carbon.databridge.core.exception.EventConversionException:转换loganalyzer时出错:1.0.0事件包与事件1         at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:181)         at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:90)         在org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:73)         at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)         在java.util.concurrent.FutureTask.run(FutureTask.java:262)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)         在java.lang.Thread.run(Thread.java:745) 引起:org.wso2.carbon.databridge.core.exception.EventConversionException:没有streamId loganalyzer的StreamDefinition:1.0.0存在于缓存中

有人可以告诉我如何解决这个问题。