先格式化元数据
schematool -dbType mysql -initSchema
在bin目录下启动hive元数据服务
./hive --service metastore &
再启动hive
执行show databases;
若还是报错 检查 hive-site.xml
schematool -dbType mysql -initSchema
./hive --service metastore &
执行show databases;
若还是报错 检查 hive-site.xml