java.lang.RuntimeException

could not instantiate 'com.twitter.elephantbird.pig.piggybank.ProtobufBytesToTuple' with arguments '[com.protobuf.LogProtos.Logs]'

Samebug tips1

org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web18948

  • via Google Groups by Samir Madhavan, 6 months ago
    could not instantiate 'com.twitter.elephantbird.pig.piggybank.ProtobufBytesToTuple' with arguments '[com.protobuf.LogProtos.Logs]'
  • could not instantiate 'com.twitter.elephantbird.pig.piggybank.ProtobufBytesToTuple' with arguments '[com.my.converted.proto.class]'
  • via Apache's JIRA Issue Tracker by Jarek Jarcec Cecho, 9 months ago
    could not instantiate 'AvroStorage' with arguments '[, -r]'
  • Stack trace

    • java.lang.RuntimeException: could not instantiate 'com.twitter.elephantbird.pig.piggybank.ProtobufBytesToTuple' with arguments '[com.protobuf.LogProtos.Logs]' at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:835) at org.apache.pig.parser.LogicalPlanGenerator.load_clause(LogicalPlanGenerator.java:3236) at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1315) at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:799) at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:517) at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:392) at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:184) Caused by: java.lang.RuntimeException: could not instantiate 'com.twitter.elephantbird.pig.piggybank.ProtobufBytesToTuple' with arguments '[com.protobuf.LogProtos.Logs]' at org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:618) at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:823) ... 7 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:586) ... 9 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.protobuf.LogProtos at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:188) at com.twitter.elephantbird.util.Protobufs.getInnerClass(Protobufs.java:92) at com.twitter.elephantbird.util.Protobufs.getInnerProtobufClass(Protobufs.java:87) at com.twitter.elephantbird.util.Protobufs.getProtobufClass(Protobufs.java:69) at com.twitter.elephantbird.util.Protobufs.getProtobufClass(Protobufs.java:55) at com.twitter.elephantbird.pig.util.PigUtil.getProtobufClass(PigUtil.java:55) at com.twitter.elephantbird.pig.util.PigUtil.getProtobufTypeRef(PigUtil.java:89) at com.twitter.elephantbird.pig.piggybank.ProtobufBytesToTuple.<init>(ProtobufBytesToTuple.java:37) ... 14 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 month ago
    6 times, 2 months ago
    2 times, 2 months ago
    Once, 7 months ago
    60 times, 7 months ago
    66 more bugmates