报错:Sqoop2 Exception: java.lang.NoSuchMethodError Message: org.apache.hadoop.security.authentication....

报错过程:

进入sqoop2之后,

输入命令:show connector,报错

报错现象:

Exception has occurred during processing command
Exception: java.lang.NoSuchMethodError Message: org.apache.hadoop.security.authentication.client.Authenticator.setConnectionConfigurator(Lorg/apache/hadoop/security/authentication/client/ConnectionConfigurator;)V

报错:Sqoop2 Exception: java.lang.NoSuchMethodError Message: org.apache.hadoop.security.authentication...._第1张图片

报错原因:

jar包冲突,org.apache.hadoop.security.authentication.client 这个包找不到,或者不同版本冲突。

解决方法:

将CDH中的hadoop-auth-2.6.0-cdh5.15.1.jar包直接放到 /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/sqoop2/client-lib目录中

报错:Sqoop2 Exception: java.lang.NoSuchMethodError Message: org.apache.hadoop.security.authentication...._第2张图片

运行结果:

报错:Sqoop2 Exception: java.lang.NoSuchMethodError Message: org.apache.hadoop.security.authentication...._第3张图片

 

转载于:https://www.cnblogs.com/chuijingjing/p/10725342.html

你可能感兴趣的:(大数据,java)