Pig Split command
============SPLIT================== Emp1 = LOAD '/user/cloudera/ N_EMP1.txt' USING PigStorage(',') as ( sno:int , name:chararray , role:chararray , salary:chararray , company:chararray , exp:int); Emp2 = LOAD '/user/cloudera/ N_EMP2.txt' USING PigStorage(',') as ( sno:int , name:chararray , role:chararray , salary:int , company:chararray , exp:int); The SPLIT operator is used to split a relation into two or more relations. SPLIT Emp1 into X if (exp > 3), Y if (exp < 3); dump X; ==========CROSS======== c = CROSS Emp1,Emp2; dump c; Join: TXN = LOAD '/user/cloudera/txns.txt' USING PigStorage(',') as (txnno:INT, txndate:CHARARRAY, custno:INT , amount:INT , category:CHARARRAY, product:CHARARRAY, city:CHARARRAY, state:CHARARRAY, spendby:CHARARRAY); CUTS = LOAD '/user/cloudera/custs' USING PigStorage(',') as (cusid:int, firstname: CHARARRAY, lastname: CHARARRAY, age:int,profession:...