Sqoop1 Import Job Failed With Error “java.io.IOException: No columns to generate for ClassWriter”

Recently when I was testing Sqoop1 command in my CDH cluster, I kept getting “java.io.IOException: No columns to generate for ClassWriter” error. The full command was like below: sqoop import –connect jdbc:mysql://<mysql-host>/test –table test –username <username> –password <password> –target-dir sqoop_test -m 1 And full stacktrace: 16/08/20 03:03:13 ERROR manager.SqlManager: Error …