环境说明

cdh 6.3.1
mariadb 10.4.7

报错

启动cloudera-scm-server的时候报错
2020-03-28 02:22:31,966 ERROR main:com.cloudera.server.cmf.Main: Server failed.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cloudera.server.cmf.TrialState': Cannot resolve reference to bean 'entityManagerFactoryBean' w
hile setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean thre
w exception on object creation; nested exception is java.lang.RuntimeException: Unable to obtain CM release version.
cdh6安装Mariadb10报错解决_第1张图片

解决

通过官网查看,目前cdh6不支持mariadb10.4版本,后来改为10.1版本后正常启动
参考文档:https://docs.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_database_requirements.html#cdh_cm_supported_db
cdh6安装Mariadb10报错解决_第2张图片