Mac 安装ODC报错

【 使用环境 】测试环境
【 OB or 其他组件 】ODC
【 使用版本 】3.3.2
【问题描述】[2022-10-12 11:28:45.497][main][,][ERROR][com.alipay.odc.config.BeanCreateFailedAnalyzer][21]: bean create failed
【复现路径】mac安装ODC,打开时java异常退出报错
【问题现象及影响】
Bean create failed, beanName=odcServer, message=Error creating bean with name ‘odcServer’: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘localObjectStorageFacade’ defined in URL [jar:file:/private/var/folders/18/g0z2vyb15x94sbybr1cxr7x40000gp/T/AppTranslocation/E6B7ECD0-4F98-436A-A47D-A0310D7073EF/d/OceanBase%20Developer%20Center.app/Contents/Resources/libraries/java/odc.jar!/BOOT-INF/classes!/com/oceanbase/odc/service/objectstorage/LocalObjectStorageFacade.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘metadbTransactionManager’ defined in class path resource [com/alipay/odc/config/DataSourceConfiguration.class]: Unsatisfied dependency expressed through method ‘metadbTransactionManager’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘metadbEntityManagerFactory’ defined in class path resource [com/alipay/odc/config/DataSourceConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister

Action:

please check configuration then restart odc-server

[2022-10-12 11:29:25.834][Thread-0][,][INFO][com.alipay.odc.OdcServer][72]: Oceanbase Developer Center exits, systemInfo={startTime=2022-10-12T11:29:03.198+0800, garbageCollector=41, heap=init = 268435456(262144K) used = 72542048(70841K) committed = 356515840(348160K) max = 4294967296(4194304K), nonHeap=init = 7667712(7488K) used = 91999080(89842K) committed = 93913088(91712K) max = -1(-1K)}

【附件】

有可能是 JAVA 版本的问题,推荐使用自带 JDK 的版本,最新版下载地址:下载客户端版 ODC

尝试用链接内的安装包安装,都安装不进mac电脑,包括jre版本安装包
是否对mac不兼容?

兼容的,装不进电脑是什么表现?方便截个图吗?
用的是这个下载链接吗?


都是过了,基本都不行,jre安装包安装的,也没生成对应log日志,只能截图了

[2022-10-12 14:35:12.201] [info] fetch server status count(71)
[2022-10-12 14:35:12.205] [info] check server with resp err
[2022-10-12 14:35:12.206] [info] check server with false
[2022-10-12 14:35:12.207] [error] Run Server Failed: timeout

odc/logs/server目录没有生成,上面的事odc/logs/client目录产生的main.log

是不是有其他的 ODC 进程没关掉,先把 ODC 程序全关掉,然后再使用 3.4.0 版本的 ODC 打开下试试。

查询了一下进程情况,没有其他ODC进程在运行

最开始的 server 目录下的日志文件也找不到了吗?

它在初始化过程中,并不会生成server目录
(由于是不同安装包安装,所以我都会把之前的环境清空)

可以把这个目录手动建出来,再重启 3.4.0 试一下。