Pig
  1. Pig
  2. PIG-207

New illustrate command does not work in mapreduce mode.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.1.0
    • Fix Version/s: 0.1.0
    • Component/s: impl
    • Labels:
      None

      Description

      In local mode, illustrate will work. But if exectype is set to mapreduce, then:

      grunt> a = load 'data/test.txt';
      grunt> b = filter a by $0 eq 'f2';
      grunt> illustrate b;
      2008-04-16 00:03:06,512 [main] ERROR org.apache.pig.tools.grunt.GruntParser - java.lang.ClassCastException: org.apache.pig.backend.hadoop.executionengine.HExecutionEngine cannot be cast to org.apache.pig.backend.local.executionengine.LocalExecutionEngine
              at org.apache.pig.pen.ExGen.GenerateExamples(ExGen.java:61)
              at org.apache.pig.PigServer.showExamples(PigServer.java:573)
              at org.apache.pig.PigServer.showExamples(PigServer.java:569)
              at org.apache.pig.tools.grunt.GruntParser.processIllustrate(GruntParser.java:131)
              at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:172)
              at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:72)
              at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:54)
              at org.apache.pig.Main.main(Main.java:272)
      

      dump a and dump b work.

      1. exgen.patch
        12 kB
        Shubham Chopra

        Activity

        Alan Gates created issue -
        Hide
        Shubham Chopra added a comment -

        Patch fixing the bug. The test cases are also modified accordingly to ensure the HDFS connectivity is established using the MiniCluster

        Show
        Shubham Chopra added a comment - Patch fixing the bug. The test cases are also modified accordingly to ensure the HDFS connectivity is established using the MiniCluster
        Shubham Chopra made changes -
        Field Original Value New Value
        Attachment exgen.patch [ 12380701 ]
        Hide
        Alan Gates added a comment -

        Patch previously submitted by Shubham

        Show
        Alan Gates added a comment - Patch previously submitted by Shubham
        Alan Gates made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.0.0 [ 12312847 ]
        Affects Version/s 0.1.0 [ 12312848 ]
        Hide
        Alan Gates added a comment -

        Patch checked in at revision 650688. Thanks Shubham.

        Show
        Alan Gates added a comment - Patch checked in at revision 650688. Thanks Shubham.
        Alan Gates made changes -
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Olga Natkovich made changes -
        Fix Version/s 0.1.0 [ 12312848 ]
        Alan Gates made changes -
        Assignee Shubham Chopra [ shubhamc ]
        Alan Gates made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        5d 5h 35m 1 Alan Gates 22/Apr/08 23:56
        Patch Available Patch Available Resolved Resolved
        20s 1 Alan Gates 22/Apr/08 23:57
        Resolved Resolved Closed Closed
        700d 23h 4m 1 Alan Gates 24/Mar/10 22:01

          People

          • Assignee:
            Shubham Chopra
            Reporter:
            Alan Gates
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development