Sqoop: java.lang.RuntimeException: Could not load db driver class: com.mysql.jdbc.Driver

错误一、

Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: com.mysql.jdbc.Driver 

解决方法: 

1、将mysql的驱动包拷贝到$SQOOP_HOME/lib下 

2、检查sqoop的环境变量是否配置成功

错误二、

SQLException: Access denied for user ‘root’@’localhost’ (using password: YES) 

原因:mysql没有开启远程访问权限 

解决方法:mysql中执行如下命令,开启远程访问权限

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'P@ssw0rd' WITH GRANT OPTION;

你可能感兴趣的:(Sqoop)