Partial and duplicate records while sqoop import

倾然丶 夕夏残阳落幕 提交于 2019-12-05 21:54:31

When using the split-by and field is non integer .

Sqoop uses TextSplitter which provides a warning as follows :

WARN db.TextSplitter: If your database sorts in a case-insensitive order, this may result in a partial import or duplicate records

WARN db.TextSplitter: You are strongly encouraged to choose an integral split column. 
  • solution 1: use single mapper or 2
  • solution 2: use rank function in the query and use the --split-by on the rank field
  • solution 3: sort the --split-by field in ascending order in the query
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!