sqoop import issue with mysql

前端 未结 9 1668
情深已故
情深已故 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

提交回复
热议问题