hadoop - pig counting distinct leads to scalar has more than one row in output error -
I have a pig relation that reads some things -
Description A; A: {Header: (member_id, field_2, ..)} Now I just want to tease members so that I do this -
A1 = A generated dealer. Member_id; A2 = limited A1 10; A2; This error runs for a very long time to finish - Backend Error Unable to open Iterator for aka A2: There is more than one line of scalar in the output.
What am I doing?
The issue is with this line:
A1 = A Aadder for the product. Member_id; You should not reference A in A.header.member_id . The pig is operating in each code A so that it only sees the value in each tuple (in this case only header ) because the pig is in this area A does not see, checks to see if it can use a relationship (in your example A , A1 , and instead of A 2 relationship) However, it can only use that connection if it has a line; If this does not happen, then the error happened to you. The solution is to change only A1 : A1 = FOREACH A GENERATE header.member_id;
Comments
Post a Comment