otter数据同步已正常运行,但上周mysql主备发生了切换,otter夯死报找不到对应的mysqlbin文件,在github上找到了针对数据高可用方案就是配置groupkey,但一直配置无法成功 1、单独对数据库进行校验验证通过说明网络是通的如图 2、根据github的方案配置groupkey
3、配置好后再进行验证老是失败如图
4、otter-manager后台日志如下:
2019-09-09 15:03:57.902 [/dwr/call/plaincall/Hello.check.dwr] ERROR com.alibaba.otter.manager.biz.utils.DataSourceChecker - check error! com.google.common.collect.ComputationException: java.lang.NullPointerException at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:167) ~[guava-r08.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:116) ~[guava-r08.jar:na] at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:67) ~[guava-r08.jar:na] at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:623) ~[guava-r08.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler.create(MediaPushDataSourceHandler.java:109) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.manager.biz.common.DataSourceCreator.preCreate(DataSourceCreator.java:116) ~[manager.biz-4.2.14.jar:na] at com.alibaba.otter.manager.biz.common.DataSourceCreator.createDataSource(DataSourceCreator.java:70) ~[manager.biz-4.2.14.jar:na] at com.alibaba.otter.manager.biz.utils.DataSourceChecker.check(DataSourceChecker.java:146) ~[manager.biz-4.2.14.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_221] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_221] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_221] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_221] at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283) [dwr-2.0.10.jar:na] at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52) [dwr-2.0.10.jar:na] at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) [dwr-2.0.10.jar:na] at org.directwebremoting.spring.DwrSpringServlet.doPost(DwrSpringServlet.java:158) [dwr-2.0.10.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) [javax.servlet-3.0.0.v201112011016.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at com.alibaba.citrus.webx.support.AbstractWebxRootController.giveUpControl(AbstractWebxRootController.java:306) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.support.AbstractWebxRootController.service(AbstractWebxRootController.java:168) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.WebxFrameworkFilter.doFilter(WebxFrameworkFilter.java:152) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.FilterBean.doFilter(FilterBean.java:147) [citrus-webx-all-3.2.0.jar:3.2.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at com.alibaba.citrus.webx.servlet.SetLoggingContextFilter.doFilter(SetLoggingContextFilter.java:61) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.FilterBean.doFilter(FilterBean.java:147) [citrus-webx-all-3.2.0.jar:3.2.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559) [jetty-security-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.Server.handle(Server.java:365) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) [jetty-http-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) [jetty-io-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) [jetty-io-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910] at java.lang.Thread.run(Thread.java:748) [na:1.7.0_221] Caused by: java.lang.NullPointerException: null at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.parse(MediaDatasourceSupplier.java:135) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.init(MediaDatasourceSupplier.java:103) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.doStart(MediaDatasourceSupplier.java:87) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.supplier.AbstractDatasourceSupplier.start(AbstractDatasourceSupplier.java:34) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSource.init(MediaPushDataSource.java:99) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler.createDataSource(MediaPushDataSourceHandler.java:128) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler$2$1.apply(MediaPushDataSourceHandler.java:87) ~[shared.push-4.2.14.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler$2$1.apply(MediaPushDataSourceHandler.java:84) ~[shared.push-4.2.14.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:155) ~[guava-r08.jar:na] ... 52 common frames omitted
各位大神会是什么问题呢?请帮忙解达万分感谢
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。