部署CM报错(5):hive配置连接mysql报错:Able to find the Database server, but not the specified database.

1.问题描述

主机无法连接mysql数据库,连接报错

Able to find the Database server, but not the specified database. Please check if the database name is correct and make sure that the user can access the database.

2.问题原因

hadoop的mysql数据库,没有hive数据库,以及用户名和密码

3.解决办法

在hadoop中创建hive数据库,以及对应用户名root,和密码123456.

(1)主节点server上(mysql数据库节点)

cd /opt/cloudera-manager/cm-5.10.2/share/cmf/schema

(2)创建hive数据库

./scm_prepare_database.sh mysql -h hadoop -ucm -pcm --scm-host hadoop hive root 123456

(3)重新测试连接

猜你喜欢

转载自blog.csdn.net/u010886217/article/details/85345999
今日推荐