hadoop pig入门总结

http://blackproof.iteye.com/blog/1791980

 

data = LOAD '/prod/view/{15499,15519,15520}/{131001,131002,131003,131130}' USING PigStorage(',');


data = FOREACH data GENERATE (int) $0 AS camp, (int) $2 AS mediaid, (long) $3AS spotid, (chararray) REPLACE($4, '_', '') AS cookie, (chararray) REPLACE($9, '%3B', ',') AS userdef ;

你可能感兴趣的:(hadoop)