Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issue with MySql Database while adding Sentry Service

Issue with MySql Database while adding Sentry Service

New Contributor

Hi,

 

While adding Sentry service, I'm trying to configure the MySql database.

'Test Connection' part is getting succeeded, but in subsequent steps ie. to create table in sentry database, I receive an error related to MySql connection.

 

 

 Testing_Connection.png

 

Error_while_creating_sentry_database_tables.png

 

The error is :

 

org.apache.sentry.SentryUserException: Failed to make connection to Sentry store.
 at org.apache.sentry.provider.db.tools.SentrySchemaTool.getConnectionToMetastore(SentrySchemaTool.java:205)
 at org.apache.sentry.provider.db.tools.SentrySchemaTool.testConnectionToMetastore(SentrySchemaTool.java:176)
 at org.apache.sentry.provider.db.tools.SentrySchemaTool.doInit(SentrySchemaTool.java:300)
 at org.apache.sentry.provider.db.tools.SentrySchemaTool.doInit(SentrySchemaTool.java:286)
 at org.apache.sentry.provider.db.tools.SentrySchemaTool$CommandImpl.run(SentrySchemaTool.java:560)
 at org.apache.sentry.SentryMain.main(SentryMain.java:94)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:483)
 at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.sql.SQLException: Access denied for user 'root'@'bhukrk321218d' (using password: YES)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3835)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3771)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
 at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4280)
 at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1258)
 at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2239)
 at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2270)
 at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
 at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
 at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
 at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
 at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
 at java.sql.DriverManager.getConnection(DriverManager.java:664)
 at java.sql.DriverManager.getConnection(DriverManager.java:247)
 at org.apache.sentry.provider.db.tools.SentrySchemaTool.getConnectionToMetastore(SentrySchemaTool.java:203)
 ... 11 more
*** Sentry schemaTool failed ***

 

Regards,

Amit 

Don't have an account?
Coming from Hortonworks? Activate your account here