sqoop import issue with mysql

前端 未结 9 1663
情深已故
情深已故 2021-01-13 04:07

I have a hadoop ha setup based on cdh5.I have tried to import tables from mysql by using sqoop failed with following error.

15/03/20 12:47:53 ERROR manager.         


        
相关标签:
9条回答
  • 2021-01-13 04:32

    Find the jar locations that are being used in sqoop, in my case, it is pointing to the link /usr/share/java/mysql-connector-java.jar

    so when I check the link /usr/share/java/mysql-connector-java.jar it points to mysql-connector-java-5.1.17.jar

    /usr/share/java/mysql-connector-java.jar -> mysql-connector-java-5.1.17.jar

    as 5.1.17 is having this issue, try 5.1.37 or higher.

    unlink /usr/share/java/mysql-connector-java.jar

    ln -s /usr/share/java/mysql-connector-java.jar /usr/share/java/mysql-connector-java-5.1.37.jar

    0 讨论(0)
  • 2021-01-13 04:36

    If you have com.mysql.jdbc_5.1.5.jar or any version of com.mysql.jdbc_5.X.X.jar file in $HADOOP_HOME/bin folder, then remove that, and execute your SQOOP query.

    0 讨论(0)
  • 2021-01-13 04:40

    Try with mysql-connector-java-5.1.31.jar, it is compatable with sqoop 1.4.5.

    mysql-connector-java-5.1.17.jar driver does not work with sqoop 1.4.5.

    refer :

    https://issues.apache.org/jira/browse/SQOOP-1400

    0 讨论(0)
提交回复
热议问题