Load operations in pig script sequential or parallel?

ぐ巨炮叔叔 提交于 2019-12-11 09:43:55

问题


I have 2 load statements in a pig script as below:

a=load 'file1.dat' using HCatLoader();

b=load 'file2.dat' using HcatLoader();

After these, I have some transformations on a and b seperately. If we run this pig script in batch mode, does the load and transformations of both files happen sequentially or in parallel? I was thinking that pig optimises this script and runs both the loads in parallel. But not 100% sure. Can anyone comment on this?


回答1:


Each load command will run in parallel, but the commands in pig script will run serial.



来源:https://stackoverflow.com/questions/34052356/load-operations-in-pig-script-sequential-or-parallel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!