19/06/05 19:42:30 ERROR mapreduce.ExportJobBase: Export job failed!
19/06/05 19:42:30 ERROR tool.ExportTool: Error during export:
Export job failed!
at org.apache.sqoop.mapreduce.ExportJobBase.runExport(ExportJobBase.java:445)
at org.apache.sqoop.manager.SqlManager.exportTable(SqlManager.java:931)
at org.apache.sqoop.tool.ExportTool.exportTable(ExportTool.java:80)
at org.apache.sqoop.tool.ExportTool.run(ExportTool.java:99)
at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
orgapachesqoopSqooprunTool at (Sqoopjava243)
at orgapachesqoopSqoopmain (Sqoopjava252)
The reason is that there are Chinese data, and the database does not support the coding table
Solutions are as follows:
The data table export, re-create the table after deleting the table, and specify the encoding DEFAULT CHARSET = utf8