Grokbase Groups Pig dev April 2008
FAQ
Got ClassCastException when using BinaryStorage on the load statement
---------------------------------------------------------------------

Key: PIG-190
URL: https://issues.apache.org/jira/browse/PIG-190
Project: Pig
Issue Type: Bug
Reporter: Xu Zhang
Assignee: Arun C Murthy


With the following Pig script, I got the exception below:

{code}
A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
B = stream A through `BinaryReadWrite.pl -o f`;
store B into 'results_38';
{code}

{noformat}
2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
at org.apache.pig.Main.main(Main.java:265)

2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
{noformat}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Xu Zhang (JIRA) at Apr 7, 2008 at 7:10 pm
    [ https://issues.apache.org/jira/browse/PIG-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586498#action_12586498 ]

    Xu Zhang commented on PIG-190:
    ------------------------------

    I did not see the ClassCastException exception anymore, but the output of the streaming (ie, the contents of the results_38 is not what I expected.
    Got ClassCastException when using BinaryStorage on the load statement
    ---------------------------------------------------------------------

    Key: PIG-190
    URL: https://issues.apache.org/jira/browse/PIG-190
    Project: Pig
    Issue Type: Bug
    Reporter: Xu Zhang
    Assignee: Arun C Murthy

    With the following Pig script, I got the exception below:
    {code}
    A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
    B = stream A through `BinaryReadWrite.pl -o f`;
    store B into 'results_38';
    {code}
    {noformat}
    2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
    at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
    at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
    at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
    at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
    at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
    at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
    at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
    at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
    at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
    at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
    at org.apache.pig.Main.main(Main.java:265)
    2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
    {noformat}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Arun C Murthy (JIRA) at Apr 7, 2008 at 8:22 pm
    [ https://issues.apache.org/jira/browse/PIG-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586519#action_12586519 ]

    Arun C Murthy commented on PIG-190:
    -----------------------------------

    Xu, what was the expected results and what did you see?
    Got ClassCastException when using BinaryStorage on the load statement
    ---------------------------------------------------------------------

    Key: PIG-190
    URL: https://issues.apache.org/jira/browse/PIG-190
    Project: Pig
    Issue Type: Bug
    Reporter: Xu Zhang
    Assignee: Arun C Murthy

    With the following Pig script, I got the exception below:
    {code}
    A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
    B = stream A through `BinaryReadWrite.pl -o f`;
    store B into 'results_38';
    {code}
    {noformat}
    2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
    at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
    at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
    at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
    at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
    at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
    at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
    at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
    at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
    at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
    at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
    at org.apache.pig.Main.main(Main.java:265)
    2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
    {noformat}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Apr 7, 2008 at 11:00 pm
    [ https://issues.apache.org/jira/browse/PIG-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich resolved PIG-190.
    --------------------------------

    Resolution: Fixed

    fixed with patch for PIG-182
    Got ClassCastException when using BinaryStorage on the load statement
    ---------------------------------------------------------------------

    Key: PIG-190
    URL: https://issues.apache.org/jira/browse/PIG-190
    Project: Pig
    Issue Type: Bug
    Reporter: Xu Zhang
    Assignee: Arun C Murthy

    With the following Pig script, I got the exception below:
    {code}
    A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
    B = stream A through `BinaryReadWrite.pl -o f`;
    store B into 'results_38';
    {code}
    {noformat}
    2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
    at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
    at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
    at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
    at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
    at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
    at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
    at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
    at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
    at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
    at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
    at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
    at org.apache.pig.Main.main(Main.java:265)
    2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
    {noformat}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedApr 5, '08 at 4:44a
activeApr 7, '08 at 11:00p
posts4
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 4 posts

People

Translate

site design / logo © 2022 Grokbase