Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1056

table can not be loaded after store

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Pig Stack Trace
      ---------------
      ERROR 1018: Problem determining schema during load

      org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during parsing. Problem determining schema during load
      at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1023)
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:967)
      at org.apache.pig.PigServer.registerQuery(PigServer.java:383)
      at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:716)
      at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:324)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:168)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:144)
      at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:89)
      at org.apache.pig.Main.main(Main.java:397)
      Caused by: org.apache.pig.impl.logicalLayer.parser.ParseException: Problem determining schema during load
      at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:734)
      at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:63)
      at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1017)
      ... 8 more
      Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1018: Problem determining schema during load
      at org.apache.pig.impl.logicalLayer.LOLoad.getSchema(LOLoad.java:155)
      at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:732)
      ... 10 more
      Caused by: java.io.IOException: No table specified for input
      at org.apache.hadoop.zebra.pig.TableLoader.checkConf(TableLoader.java:238)
      at org.apache.hadoop.zebra.pig.TableLoader.determineSchema(TableLoader.java:258)
      at org.apache.pig.impl.logicalLayer.LOLoad.getSchema(LOLoad.java:148)
      ... 11 more
      ================================================================================
      ~

      script:
      register /grid/0/dev/hadoopqa/hadoop/lib/zebra.jar;
      A = load 'filter.txt' as (name:chararray, age:int);

      B = filter A by age < 20;
      --dump B;
      store B into 'filter1' using org.apache.hadoop.zebra.pig.TableStorer('[name];[age]');
      rec1 = load 'B' using org.apache.hadoop.zebra.pig.TableLoader();
      dump rec1;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jing1234 Jing Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: