我是靠谱客的博主 安静老鼠,最近开发中收集的这篇文章主要介绍cm中使用mysql_安装CDH在初始化CM数据库的时候出现mysql数据库连接的问题的解决方案...,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

[2018-09-12 16:22:51,787]ERROR 0[main] - com.cloudera.enterprise.dbutil.DbProvisioner.executeSql(DbProvisioner.java) - Exception when creating/dropping database with user 'root' and jdbc url 'jdbc:mysql://10.100.200.40/?useUnicode=true&characterEncoding=UTF-8'java.sql.SQLException: Access deniedfor user 'root'@'VM200-40' (usingpassword: YES)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)

at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4332)

at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1258)

at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234)

at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265)

at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064)

at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:790)

at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)

at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)

at java.sql.DriverManager.getConnection(DriverManager.java:571)

at java.sql.DriverManager.getConnection(DriverManager.java:215)

at com.cloudera.enterprise.dbutil.DbProvisioner.executeSql(DbProvisioner.java:296)

at com.cloudera.enterprise.dbutil.DbProvisioner.doMain(DbProvisioner.java:104)

at com.cloudera.enterprise.dbutil.DbProvisioner.main(DbProvisioner.java:123)

[2018-09-12 16:22:51,792]ERROR 5[main] - com.cloudera.enterprise.dbutil.DbProvisioner.main(DbProvisioner.java) -Stack Trace:

java.sql.SQLException: Access deniedfor user 'root'@'VM200-40' (usingpassword: YES)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)

at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4332)

at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1258)

at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234)

at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265)

at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064)

at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:790)

at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)

at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)

at java.sql.DriverManager.getConnection(DriverManager.java:571)

at java.sql.DriverManager.getConnection(DriverManager.java:215)

at com.cloudera.enterprise.dbutil.DbProvisioner.executeSql(DbProvisioner.java:296)

at com.cloudera.enterprise.dbutil.DbProvisioner.doMain(DbProvisioner.java:104)

at com.cloudera.enterprise.dbutil.DbProvisioner.main(DbProvisioner.java:123)

最后

以上就是安静老鼠为你收集整理的cm中使用mysql_安装CDH在初始化CM数据库的时候出现mysql数据库连接的问题的解决方案...的全部内容,希望文章能够帮你解决cm中使用mysql_安装CDH在初始化CM数据库的时候出现mysql数据库连接的问题的解决方案...所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(42)

评论列表共有 0 条评论

立即
投稿
返回
顶部