Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-27-2016 08:52 PM
Created 08-01-2016 08:18 PM
I don't see a problem with your code, I'm able to execute your code using HDP 2.4 Sandbox
temp = LOAD 'abc.txt' using PigStorage(';','-tagFile');
test = RANK temp;
DUMP test;my abc.txt looks like so
David,1,N Tete,2,N Ranjit,3,M Ranjit,3,P David,4,Q David,4,Q Jillian,8,Q JaePak,7,Q Michael,8,T Jillian,8,Q Jose,10,V
and my output looks like so:
(1,abc.txt,David,1,N) (2,abc.txt,Tete,2,N) (3,abc.txt,Ranjit,3,M) (4,abc.txt,Ranjit,3,P) (5,abc.txt,David,4,Q) (6,abc.txt,David,4,Q) (7,abc.txt,Jillian,8,Q) (8,abc.txt,JaePak,7,Q) (9,abc.txt,Michael,8,T) (10,abc.txt,Jillian,8,Q) (11,abc.txt,Jose,10,V)
I used tez as executing engine
pig -x tez
Created 08-01-2016 08:18 PM
I don't see a problem with your code, I'm able to execute your code using HDP 2.4 Sandbox
temp = LOAD 'abc.txt' using PigStorage(';','-tagFile');
test = RANK temp;
DUMP test;my abc.txt looks like so
David,1,N Tete,2,N Ranjit,3,M Ranjit,3,P David,4,Q David,4,Q Jillian,8,Q JaePak,7,Q Michael,8,T Jillian,8,Q Jose,10,V
and my output looks like so:
(1,abc.txt,David,1,N) (2,abc.txt,Tete,2,N) (3,abc.txt,Ranjit,3,M) (4,abc.txt,Ranjit,3,P) (5,abc.txt,David,4,Q) (6,abc.txt,David,4,Q) (7,abc.txt,Jillian,8,Q) (8,abc.txt,JaePak,7,Q) (9,abc.txt,Michael,8,T) (10,abc.txt,Jillian,8,Q) (11,abc.txt,Jose,10,V)
I used tez as executing engine
pig -x tez
Created 08-18-2016 03:36 PM
Thanks for the answer. I was out of town and could not get back. I have tested and looked good if we run with 'tez' engine. Is there anyway we can test with oozie flow. The same I am not able to test with oozie as it's taking mapreduce mode