造成如下图所示错误的原因是:hive schema和metastore schema 版本不一致造成的
解决方法:
1. 使用root身份访问mysql
mysql -u root -p password
2. 使用hive数据库
use hive
3. 查看version表中Schema的版本
select * from version;
4. 更新version表中schema版本
update VERSION set SCHEMA_VERSION='2.3.0' where VER_ID=1;
5. 重启hive元数据库,即可成功