我正在尝试使用以下命令从Hive表导出到SAP HANA,但出现错误。
sqoop export --connect jdbc:sap://stage.xxxxxxxxx.com:30015 \
--driver com.sap.db.jdbc.Driver --username u1 --password pwd --direct \
--export-dir hdfs://nameser/source/customer -m 1 \
--table CUSTOMER.CUSTOMER_SCORE
错误消息
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near ",": line 1 col 88 (at pos 88)
注意:在我的原始声明中,pos 88处没有逗号
ERROR [main] org.apache.sqoop.mapreduce.TextExportMapper: Dumping data is not allowed by default, please run the job with -Dorg.apache.sqoop.export.text.dump_data_on_error=true to get corrupted line
ERROR [main] org.apache.sqoop.mapreduce.TextExportMapper: On input file: hdfs://nameser/source/custome/000000_0
注意:文本文件定界符为CTRL-A ***如果HDFS位置中没有文件,则执行该语句时不会有错误,并且我得到Map输入记录= 0和Map输出记录= 0