sqoop报错以及解决:Access denied for user 'root'@'172.16.21.22' (using password: YES)

在使用Sqoop进行数据导入导出时遇到'Access denied for user 'root'@'172.16.21.22''的错误。解决方法包括检查MySQL驱动是否正确放置在sqoop的lib目录,以及确认root用户的权限,可能需要在MySQL中运行授权语句来解决权限问题。
摘要由CSDN通过智能技术生成

在使用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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值