parallel语句可以附加到Pig Latin中任一个关系操作符后面,然后它会控制reduce阶段的并行,因此只有对与可以触发reduce过程的操作符才有意义. 可以触发reduce过程的操作符有:group.order.distinct.join.cogroup.cross 设置parallel的方法: 1)在操作符后面 data = load 'data'; grpd = group data by $0 parallel 10; sorted = order data b…
Computer Systems A Programmer's Perspective Second Edition The general phenomenon of multiple flows executing concurrently is known as concurrency . The notion of a process taking turns with other processes is also known as multitasking . Each time p…