在使用sqoop进行导入导出的时候出现了错误:
Warning: /apps/sqoop-1.4.6-cdh5.13.2/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /apps/sqoop-1.4.6-cdh5.13.2/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
19/05/09 14:16:48 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.13.2
19/05/09 14:16:48 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
19/05/09 14:16:48 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
19/05/09 14:16:48 ERROR manager.CatalogQueryManager: Failed to list databases
java.sql.SQLException: Access denied for user 'root'@'mini4' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1094)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4208)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4140)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:925)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1747)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1287)
at com.mysql.jdbc.ConnectionImpl.coreConne

在使用Sqoop进行数据导入导出时遇到'Access denied for user 'root'@'172.16.21.22''的错误。解决方法包括检查MySQL驱动是否正确放置在sqoop的lib目录,以及确认root用户的权限,可能需要在MySQL中运行授权语句来解决权限问题。
最低0.47元/天 解锁文章

2270





