Created
November 13, 2012 19:40
-
-
Save afternoon/4067905 to your computer and use it in GitHub Desktop.
Piggybank/AvroStorage RuntimeException
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pig Stack Trace | |
--------------- | |
ERROR 1200: Pig script failed to parse: | |
<file test.pig, line 8, column 11> pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.pig.piggybank.storage.avro.AvroStorage' with arguments 'null' | |
org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during parsing. Pig script failed to parse: | |
<file test.pig, line 8, column 11> pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.pig.piggybank.storage.avro.AvroStorage' with arguments 'null' | |
at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1597) | |
at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1540) | |
at org.apache.pig.PigServer.registerQuery(PigServer.java:540) | |
at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:970) | |
at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:386) | |
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:189) | |
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:165) | |
at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84) | |
at org.apache.pig.Main.run(Main.java:555) | |
at org.apache.pig.Main.main(Main.java:111) | |
Caused by: Failed to parse: Pig script failed to parse: | |
<file test.pig, line 8, column 11> pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.pig.piggybank.storage.avro.AvroStorage' with arguments 'null' | |
at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:182) | |
at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1589) | |
... 9 more | |
Caused by: | |
<file test.pig, line 8, column 11> pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.pig.piggybank.storage.avro.AvroStorage' with arguments 'null' | |
at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:438) | |
at org.apache.pig.parser.LogicalPlanGenerator.load_clause(LogicalPlanGenerator.java:3168) | |
at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1291) | |
at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:789) | |
at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:507) | |
at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:382) | |
at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:175) | |
... 10 more | |
================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012-11-13 19:36:51,890 [main] INFO org.apache.pig.Main - Apache Pig version 0.10.0 (r1328203) compiled Apr 19 2012, 22:54:12 | |
2012-11-13 19:36:51,891 [main] INFO org.apache.pig.Main - Logging error messages to: /private/tmp/pig_1352835411845.log | |
2012-11-13 19:36:52.002 java[5270:1903] Unable to load realm mapping info from SCDynamicStore | |
2012-11-13 19:36:52,148 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:/// | |
2012-11-13 19:36:52,388 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse: | |
<file test.pig, line 8, column 11> pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.pig.piggybank.storage.avro.AvroStorage' with arguments 'null' | |
Details at logfile: /private/tmp/pig_1352835411845.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register avro-1.7.2.jar | |
register piggybank-0.10.0.jar | |
define AvroStorage org.apache.pig.piggybank.storage.avro.AvroStorage; | |
rmf '/tmp/count.txt' | |
messages = load '/tmp/messages.avro' using AvroStorage; | |
lower = foreach messages generate message_id, lower(topic) as topic; | |
result = count_star(lower) | |
store result into '/tmp/count.txt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment