当我尝试在Sqoop运行命令:Sqoop - 导入失败:不能将SQL类型-102
sqoop import --connect jdbc:oracle:thin:@//MyServer/MyDatabase --username MyUser --password MyPassword -m 1 --table MyTable --fetch-size 10 --create-hive-table --hive-table LocalTable --as-avrodatafile --target-dir /user/sample
我收到以下错误:
Import failed: cannot convert sql type -102
难道是因为我试图生成一个avro? 任何人都可以告诉我问题是什么以及如何解决它?
你检查了Oracle表中的列,检查它是否包含奇怪的数据类型,如BLOB等? –
既然你问了这个问题,你是否尝试将表格导入为TextFile?一般来说,你是否尝试过**任何**来诊断问题? –
对不起,我一直在调查,但我没有在这里更新我的研究。我会在几分钟内回答自己,以防其他人可能面临同样的问题 –