在SQoop Import:Splitz大小

发布于 2025-02-07 20:36:39 字数 94 浏览 2 评论 0原文

在SQOOP导入中,如果MySQL表的主要密钥ID的所有值从1到10000。一个离群值12000进来。您正在尝试使用该子句提及ID&lt< 20000。拆分尺寸是多少?

In sqoop import if the primary key id of mysql table has all values from 1 to 10000. An outlier 12000 came in. You are trying to import with a where clause mentioning id < 20000. What is the split size?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一口甜 2025-02-14 20:36:39

拆分尺寸将计算为最小= 1,最大= 12000,因此max-min/no.of.mappers
在这里我们不会计算20000

Split size will be calculated as min=1 and max=12000 so max-min/no.of.mappers
Here we will not calculate 20000 because the actual highest value in primary key is 12000 12000/4=3000 mapper1 =1-3000 mapper2=3001-6000 mapper3=6001-9000 mapper 4=9001-12000

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文