[Wso2] [Stream Processor] [Dashbord]在同一台机器上运行dashbord和worker

时间:2018-03-07 10:08:00

标签: wso2 worker siddhi wso2sp

我尝试在同一台机器上运行Worker和dashbord。 第一个工具正在运行,但当我开始第二个工具时,错误已经提出:

  

[2018-03-07 09:59:43,446] INFO   {org.wso2.msf4j.internal.websocket.EndpointsRegistryImpl} - 端点   已注册:/ server-stats / {type}       [2018-03-07 09:59:43,436] INFO {org.wso2.carbon.data.provider.DataProviderAPI} - 数据提供者   服务组件已激活       [2018-03-07 09:59:44,909] INFO {org.wso2.msf4j.internal.websocket.WebSocketServerSC} - 全部要求   WebSocket服务组件的功能是可用的   可用。       [2018-03-07 09:59:45,049] INFO {org.wso2.msf4j.internal.MicroservicesServerSC} - 所有微服务   可用       [2018-03-07 09:59:45,346] INFO {org.wso2.transport.http.netty.listener.ServerConnectorBootstrap $ HTTPServerConnector}    - 从主机0.0.0.0和端口9643开始的HTTP(S)接口       [2018-03-07 09:59:45,939] INFO {org.wso2.carbon.metrics.core.config.model.JmxReporterConfig} -   使用域为Metrics创建JMX报告器   ' org.wso2.carbon.metrics'       [2018-03-07 09:59:45,954] INFO {org.wso2.carbon.metrics.core.reporter.impl.AbstractReporter} -   为Metrics启动了JMX记者       [2018-03-07 09:59:45,954] INFO {org.wso2.msf4j.analytics.metrics.MetricsComponent} - 指标   组件已激活       [2018-03-07 09:59:45,970] INFO {org.wso2.carbon.databridge.agent.internal.DataAgentDS} - 成功   部署代理服务器       [2018-03-07 09:59:52,914] ERROR {org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager}    - 调用onAllRequiredCapabilitiesAvailable组件时发生运行时异常   碳数据源服务   com.zaxxer.hikari.pool.PoolInitializationException:期间的异常   池初始化:连接断开:   " java.net.SocketTimeoutException:connect timed out:   169.254.235.125:59336" [90067-196]         在com.zaxxer.hikari.pool.HikariPool.initializeConnections(HikariPool.java:581)         在com.zaxxer.hikari.pool.HikariPool。(HikariPool.java:152)         在com.zaxxer.hikari.HikariDataSource。(HikariDataSource.java:73)         在org.wso2.carbon.datasource.rdbms.hikari.HikariRDBMSDataSource.getDataSource(HikariRDBMSDataSource.java:56)         在org.wso2.carbon.datasource.rdbms.hikari.HikariDataSourceReader.createDataSource(HikariDataSourceReader.java:74)         在org.wso2.carbon.datasource.core.DataSourceBuilder.buildDataSourceObject(DataSourceBuilder.java:79)         在org.wso2.carbon.datasource.core.DataSourceBuilder.buildDataSourceObject(DataSourceBuilder.java:60)         at org.wso2.carbon.datasource.core.DataSourceBuilder.buildCarbonDataSource(DataSourceBuilder.java:44)         在org.wso2.carbon.datasource.core.DataSourceManager.initDataSources(DataSourceManager.java:153)         at org.wso2.carbon.datasource.core.internal.DataSourceListenerComponent.onAllRequiredCapabilitiesAvailable(DataSourceListenerComponent.java:125)         at org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda $ notifySatisfiableComponents $ 7(StartupComponentManager.java:266)         at java.util.ArrayList.forEach(ArrayList.java:1249)         at org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:252)         在org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver $ 1.run(StartupOrderResolver.java:204)         在java.util.TimerThread.mainLoop(Timer.java:555)         在java.util.TimerThread.run(Timer.java:505)       引起:org.h2.jdbc.JdbcSQLException:连接断开:" java.net.SocketTimeoutException:connect timed out:   169.254.235.125:59336" [90067-196]         在org.h2.message.DbException.getJdbcSQLException(DbException.java:345)         at org.h2.message.DbException.get(DbException.java:168)         在org.h2.engine.SessionRemote.connectServer(SessionRemote.java:457)         在org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:367)         在org.h2.jdbc.JdbcConnection。(JdbcConnection.java:116)         在org.h2.jdbc.JdbcConnection。(JdbcConnection.java:100)         在org.h2.Driver.connect(Driver.java:69)         在com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:95)         在com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:101)         在com.zaxxer.hikari.pool.HikariPool.addConnection(HikariPool.java:496)         在com.zaxxer.hikari.pool.HikariPool.initializeConnections(HikariPool.java:565)         ......还有15个       引起:java.net.SocketTimeoutException:连接超时         at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)         在java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)         在java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)         at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)         在java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)         在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)         在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)         在java.net.Socket.connect(Socket.java:589)         在org.h2.util.NetUtils.createSocket(NetUtils.java:103)         at org.h2.util.NetUtils.createSocket(NetUtils.java:83)         在org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)         在org.h2.engine.SessionRemote.connectServer(SessionRemote.java:453)         ......还有23个

     你能告诉我吗?

     

感谢。

2 个答案:

答案 0 :(得分:3)

您是否可以分享您在获得此例外时使用的WSO2 SP版本?

另外请检查W AUTO_SERVER=TRUE 配置是否可以在WSO2_METRICS_DB数据源配置的jdbc url中找到,可以在左边找到 的 {WSO2_SP_HOME} /conf/worker/deployment.yaml

例如: jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/dashboard/database/metrics;AUTO_SERVER=TRUE'

答案 1 :(得分:0)

我在mysql中配置了所有数据源,我可以运行所有SP componnent。 该问题与H2数据库有关,不允许与默认配置共享连接。

我将检查默认的H2连接参数,然后重新测试。