sqoop抽取mysql数据到Hive时报以下错误 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Generating splits for a textual index column allowed only in case of "-Dorg.apache.sqoop.splitter.allow_text_splitter=true" property passed as a parameter
报错原因:
抽取的第一列数据不是自增id列
解决办法:
在脚本里加上
-Dorg.apache.sqoop.splitter.allow_text_splitter=true
结果:完美解决