sqoop import issue with mysql

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

    Try the exact command as like below.

    sqoop import --connect "jdbc:mysql://localhost:3306/books" --username=root --password=root --table authors --as-textfile --target-dir=/datasqoop/authors_db --columns "id, name, email" --split-by id --driver com.mysql.jdbc.Driver

    This will resolve your issues.

提交回复
热议问题