You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org> on 2011/07/27 02:29:09 UTC

[jira] [Commented] (PIG-2192) load statement does not work with mount side tables

    [ https://issues.apache.org/jira/browse/PIG-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071456#comment-13071456 ] 

Dmitriy V. Ryaboy commented on PIG-2192:
----------------------------------------

Should this be 9.1?

> load statement does not work with mount side tables
> ---------------------------------------------------
>
>                 Key: PIG-2192
>                 URL: https://issues.apache.org/jira/browse/PIG-2192
>             Project: Pig
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.9.0
>         Environment: Pig 0.9.0 integrated with dotNext build
>            Reporter: Araceli Henley
>             Fix For: 0.9.0
>
>
> SUMMARY:
> Loading a file either using the full file path with the NAMENODE or with the mount point  results in a null pointer exception.
> STACK TRACE:
> ig Stack Trace
> ---------------
> ERROR 1200: Pig script failed to parse:
> <line 1, column 4> pig script failed to validate: java.lang.NullPointerException
> Failed to parse: Pig script failed to parse:
> <line 1, column 4> pig script failed to validate: java.lang.NullPointerException
>         at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:178)
>         at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1622)
>         at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1595)
>         at org.apache.pig.PigServer.registerQuery(PigServer.java:583)
>         at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:942)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:386)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:188)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:164)
>         at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:67)
>         at org.apache.pig.Main.run(Main.java:487)
>         at org.apache.pig.Main.main(Main.java:108)
> Caused by:
> <line 1, column 4> pig script failed to validate: java.lang.NullPointerException
>         at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:352)
>         at org.apache.pig.parser.LogicalPlanGenerator.load_clause(LogicalPlanGenerator.java:2723)
>         at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:999)
>         at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:638)
>         at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:459)
>         at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:357)
>         at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:171)
> EXAMPLE:
> grunt> a = load '/data/singlefile/studentnulltab10k' using PigStorage() as (name, age, gpa);
> 2011-07-26 21:59:32,708 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse:
> <line 1, column 4> pig script failed to validate: java.lang.NullPointerException
> Details at logfile: /homes/araceli/pigtest_9/pigharness/dist/pig_harness/tests/pig_1311717569232.log
> grunt> a = load 'hdfs://NAMENODE1/user/hadoopqa/pig/tests/data/singlefile/studentnulltab10k' using PigStorage() as (name, age, gpa);
> 2011-07-26 21:59:42,403 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse:
> <line 1, column 4> pig script failed to validate: java.lang.NullPointerException
> Details at logfile: /homes/araceli/pigtest_9/pigharness/dist/pig_harness/tests/pig_1311717569232.log
> The files are viewable from hdfs as:
> grunt> fs -ls hdfs://NAMENODE1/user/hadoopqa/pig/tests/data/singlefile/studentnulltab10k
> Found 1 items
> -rw-r--r--   3 hadoopqa hdfs     209607 2011-07-05 06:54 /user/hadoopqa/pig/tests/data/singlefile/studentnulltab10k
> grunt> fs -ls /data/singlefile/studentnulltab10k
> Found 1 items
> -rw-r--r--   3 hadoopqa hdfs     209607 2011-07-05 06:54 /data/singlefile/studentnulltab10k
> Mount side table:
> /user/hadoopqa/pig/tests/data is mounted as /data
> Additional Comments:
> Regression suites pass on dotNext when mount side tables are not configured.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira