创建mysql 库的时候 set utf8 的后面加上 DEFAULT COLLATE utf8_general_ci;
如 create database metastore default character set utf8 DEFAULT COLLATE utf8_general_ci;
不然在启动CM服务的时候出错 报错如下:
ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Table 'cm.CM_VERSION' doesn't exist