我是靠谱客的博主 如意烤鸡,这篇文章主要介绍部署CM报错(5):hive配置连接mysql报错:Able to find the Database server, but not the specified database.,现在分享给大家,希望可以做个参考。
1.问题描述
主机无法连接mysql数据库,连接报错
复制代码
1Able 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数据库节点)
复制代码
1cd /opt/cloudera-manager/cm-5.10.2/share/cmf/schema
(2)创建hive数据库
复制代码
1./scm_prepare_database.sh mysql -h hadoop -ucm -pcm --scm-host hadoop hive root 123456
(3)重新测试连接
最后
以上就是如意烤鸡最近收集整理的关于部署CM报错(5):hive配置连接mysql报错:Able to find the Database server, but not the specified database.的全部内容,更多相关部署CM报错(5):hive配置连接mysql报错:Able内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复