开发者社区> 问答> 正文

老师 OceanBase中我用OCP 接管集群的时候这个问题在哪里看日志呀,我的机器都是同一

问题1:老师 OceanBase中我用OCP 接管集群的时候这个问题在哪里看日志呀,我的机器都是同一个地域同可用区,同安全组 网络是通的,集群是正常的image.png image.png image.png 集群是正常的 问题2:直接连接可以,还是用别的测试方法image.png 2023-05-19 10:55:58.745 ERROR 13 --- [obsdk-init-thread-12,70d469d391f04cb0,60358694c002] com.alibaba.druid.pool.DruidDataSource : init datasource error, url: jdbc:oceanbase://172.16.170.156:2883/oceanbase?useUnicode=true&characterEncoding=UTF8

java.sql.SQLTransientConnectionException: Could not connect to 172.16.170.156:2883 : (conn=13587) cluster not exist at com.oceanbase.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:128) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:235) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1644) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.util.Utils.retrieveProxy(Utils.java:1427) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.OceanBaseConnection.newConnection(OceanBaseConnection.java:306) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.Driver.connect(Driver.java:89) ~[oceanbase-client-2.4.2.jar!/:na] at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1657) ~[druid-1.2.8.jar!/:1.2.8] at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1723) ~[druid-1.2.8.jar!/:1.2.8] at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:927) ~[druid-1.2.8.jar!/:1.2.8] at com.oceanbase.ocp.obsdk.connector.impl.AbstractConnector.init(AbstractConnector.java:95) [obsdk-4.0.3-20230301.jar!/:4.0.3-20230301] at com.oceanbase.ocp.obsdk.connector.impl.DefaultConnector.init(DefaultConnector.java:14) [obsdk-4.0.3-20230301.jar!/:4.0.3-20230301] at com.oceanbase.ocp.obsdk.connector.ObConnectors.lambda$newObConnector$1(ObConnectors.java:243) [obsdk-4.0.3-20230301.jar!/:4.0.3-20230301] at com.oceanbase.ocp.common.trace.TraceDecorator.lambda$decorate$1(TraceDecorator.java:41) ~[ocp-common-4.0.3-20230301.jar!/:4.0.3-20230301] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_312] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_312] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_312] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_312] Caused by: java.sql.SQLTransientConnectionException: (conn=13587) cluster not exist at com.oceanbase.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:128) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:230) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.protocol.AbstractConnectProtocol.authenticationHandler(AbstractConnectProtocol.java:787) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.protocol.AbstractConnectProtocol.createConnection(AbstractConnectProtocol.java:591) ~[oceanbase-client-2.4.2.jar!/:na] at com.oceanbase.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1639) ~[oceanbase-client-2.4.2.jar!/:na] ... 14 common frames omitted

2023-05-19 10:55:58.746 ERROR 13 --- [obsdk-init-thread-12,70d469d391f04cb0,60358694c002] com.alibaba.druid.pool.DruidDataSource : {dataSource-15} init error这是触发以后的 唯一个ER2023-05-19 10:55:58.748 ERROR 13 --- [obsdk-init-thread-12,70d469d391f04cb0,60358694c002] c.o.o.o.c.impl.AbstractConnector : [obsdk] init druid datasource failed. connectProperties=ConnectProperties(connectionMode=proxy, address=172.16.170.156, port=2883, obsAddrList=null, username=root, tenantName=sys, clusterName=ob-test, obClusterId=null, proxy=null, odpSocketConfig=null, vpcId=1, compatibilityMode=MYSQL, database=oceanbase), error message:Could not connect to 172.16.170.156:2883 : (conn=13587) cluster not exist 2023-05-19 10:55:58.748 ERROR 13 --- [http-nio-0.0.0.0-8080-exec-4,70d469d391f04cb0,9d129d8e57d9] c.o.ocp.obsdk.connector.ObConnectors : [obsdk] init ob connector failed, connectProperties=ConnectProperties(connectionMode=proxy, address=172.16.170.156, port=2883, obsAddrList=null, username=root, tenantName=sys, clusterName=ob-test, obClusterId=null, proxy=null, odpSocketConfig=null, vpcId=1, compatibilityMode=MYSQL, database=oceanbase), cause:java.sql.SQLTransientConnectionException: Could not connect to 172.16.170.156:2883 : (conn=13587) cluster not exist 2023-05-19 10:55:58.749 ERROR 13 --- [Druid-ConnectionPool-Create-218576965,,] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:oceanbase://172.16.170.156:2883/oceanbase?useUnicode=true&characterEncoding=UTF8, errorCode 4669, state HY000

展开
收起
真的很搞笑 2023-05-25 07:53:43 207 0
来自:OceanBase
2 条回答
写回答
取消 提交回答
  • 你好 请问这个问题解决了吗

    2024-03-25 15:27:23
    赞同 展开评论 打赏
  • 回答1:ocp节点按接管的配置 测试下连接集群。 回答2:1、可以发一下ocp.log日志看看。 2、在待接管的OB上测试一下ocp的参数(ocp.site.url): curl ${ocp.site.url} 回答2:发一下接管失败时候,ocp.log完整的日志,此回答整理自钉群“[社区]技术答疑群OceanBase”

    2023-05-25 13:37:42
    赞同 展开评论 打赏
来源圈子
更多
收录在圈子:
+ 订阅
蚂蚁OceanBase数据库团队,用于OceanBase技术原理、运维经验和案例分享、对外交流。
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
Kubernetes下日志实时采集、存储与计算实践 立即下载
日志数据采集与分析对接 立即下载