当前位置:网站首页>MyCat2启动报[MYCAT-3036][ERR_INIT_CONFIG] start FileMetadataStorageManager fail
MyCat2启动报[MYCAT-3036][ERR_INIT_CONFIG] start FileMetadataStorageManager fail
2022-07-18 02:27:00 【java-zh】
错误日志
io.mycat.MycatException: ERROR-CODE: [MYCAT-3036][ERR_INIT_CONFIG] start FileMetadataStorageManager fail
io.mycat.beans.mycat.MycatErrorCode.createMycatException(MycatErrorCode.java:156)
io.mycat.config.FileMetadataStorageManager.start(FileMetadataStorageManager.java:211)
io.mycat.config.FileMetadataStorageManager.start(FileMetadataStorageManager.java:204)
io.mycat.MycatCore.startServer(MycatCore.java:216)
io.mycat.MycatCore.main(MycatCore.java:235)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
java.util.Objects.requireNonNull(Objects.java:203)
io.mycat.replica.ReplicaSelectorRuntime.registerDatasource(ReplicaSelectorRuntime.java:195)
io.mycat.replica.ReplicaSelectorRuntime.registerDatasource(ReplicaSelectorRuntime.java:262)
io.mycat.replica.ReplicaSelectorRuntime.addCluster(ReplicaSelectorRuntime.java:245)
io.mycat.replica.ReplicaSelectorRuntime.<init>(ReplicaSelectorRuntime.java:82)
io.mycat.config.ConfigPrepareExecuter.fullInitBy(ConfigPrepareExecuter.java:181)
io.mycat.config.ConfigPrepareExecuter.prepareRuntimeObject(ConfigPrepareExecuter.java:135)
io.mycat.config.FileMetadataStorageManager.commitAndSyncDisk(FileMetadataStorageManager.java:271)
io.mycat.config.FileMetadataStorageManager$1.commit(FileMetadataStorageManager.java:250)
io.mycat.config.FileMetadataStorageManager.start(FileMetadataStorageManager.java:209)
解决方式
查看mycat里面的datasources文件夹,主要是配置问题
要注意
user后面的才是对应账号
{
"dbType":"mysql",
"idleTimeout":60000,
"initSqls":[],
"initSqlsGetConnection":true,
"instanceType":"READ_WRITE",
"maxCon":1000,
"maxConnectTimeout":3000,
"maxRetryCount":5,
"minCon":1,
"name":"prototypeDs",
"password":"123456",
"type":"JDBC",
"url":"jdbc:mysql://127.0.0.1:3306/study?useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=UTF-8",
"user":"mycat",
"weight":0
}边栏推荐
猜你喜欢

Flask模板

软件设计师:12-案例分析例题

Deep learning environment configuration pytoch

Summarize the strange interaction between reader and live broadcast: review ShuangDi Technology

MySQL - default value constraint for table fields

JMeter 21 天打卡 day10

CF591A Wizards‘ Duel

Weekly resume of personal IP lab · issue 19

The IPO of Aoyang technology was terminated: the annual revenue was 800million, and Su Wei held 67.5% equity

Spichi rushes to the scientific innovation board: annual revenue of 300million and loss of 340million. Alibaba and Lenovo star are shareholders
随机推荐
个人 IP 实验室周复盘 · 第 19 期
Explanation on the use of qpprocess
UVA10341 Solve It
为什么很多人都知道打工不挣钱却还在打工?
Jinlv environment listed on Shenzhen Stock Exchange: market value of 5billion Yu Xiaoxia family has a strong color
OS知识点简介(二)
同花顺软件炒股线上开户收费吗?开户安全吗?
MySQL regular expression
软件测试周刊(第80期):当你想倾诉的话语已经涌到了舌尖,但是把那些话憋回去的瞬间,从那个瞬间起,你就成为了大人。
TCP/IP协议栈Lwip的设计与实现:之四
【VScode输出为乱码】解决方法
Leetcode 565 array nesting [dfs memory] the way of leetcode in heroding
1805. 字符串中不同整数的数目 ●
CSDN certification C1 level learning notes - Web advanced
【Unity3D】UGUI之InputField
Handwritten simple promise code comments
The NFT market pattern has not changed. Can okaleido set off a new round of waves?
同花顺软件炒股线上开户可以免费吗?开户安全吗?
The unique index exception of the dream database in the Xinchuang environment cannot intercept the duplicatekeyexception
Spichi rushes to the scientific innovation board: annual revenue of 300million and loss of 340million. Alibaba and Lenovo star are shareholders