Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stackoverflow error occured while using ProtobufPigLoader on nested proto. #490

Open
CCv5 opened this issue Oct 8, 2018 · 0 comments
Open

Comments

@CCv5
Copy link

CCv5 commented Oct 8, 2018

I am reading protobuf data using ProtobufPigLoader, it will fail when my proto have nested defination like following example, the error log is attched.

I didn't set any value on this field, It is the default value. it would be OK after removing this specific field. checking the code (ProtobufToPig.java:192 and ProtobufToPig.java:212), it is definatly an endless recursive call.

Any Suggestion?

message A
{
repeated A sub_A = 1;
...
}

1 Pig Stack Trace
2 ---------------
3 ERROR 2998: Unhandled internal error. null
4
5 java.lang.StackOverflowError
6 at java.util.HashMap.hash(HashMap.java:338)
7 at java.util.HashMap.put(HashMap.java:611)
8 at org.apache.pig.impl.plan.NodeIdGenerator.getNextNodeId(NodeIdGenerator.java:48)
9 at org.apache.pig.impl.logicalLayer.CanonicalNamer.getNewName(CanonicalNamer.java:33)
10 at org.apache.pig.impl.logicalLayer.schema.Schema$FieldSchema.(Schema.java:155)
11 at com.twitter.elephantbird.pig.util.ProtobufToPig.singleFieldToFieldSchema(ProtobufToPig.java:241)
12 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:192)
13 at com.twitter.elephantbird.pig.util.ProtobufToPig.messageToFieldSchema(ProtobufToPig.java:212)
14 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:190)
15 at com.twitter.elephantbird.pig.util.ProtobufToPig.messageToFieldSchema(ProtobufToPig.java:212)
16 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:190)
17 at com.twitter.elephantbird.pig.util.ProtobufToPig.messageToFieldSchema(ProtobufToPig.java:212)
18 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:190)
19 at com.twitter.elephantbird.pig.util.ProtobufToPig.messageToFieldSchema(ProtobufToPig.java:212)
20 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:190)
21 at com.twitter.elephantbird.pig.util.ProtobufToPig.messageToFieldSchema(ProtobufToPig.java:212)
22 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:190)
23 at com.twitter.elephantbird.pig.util.ProtobufToPig.messageToFieldSchema(ProtobufToPig.java:212)
24 at com.twitter.elephantbird.pig.util.ProtobufToPig.toSchema(ProtobufToPig.java:190)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant