pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-2331) BinStorage in LOAD statement failing when input has curly braces
Date Tue, 06 Dec 2011 01:45:40 GMT

     [ https://issues.apache.org/jira/browse/PIG-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olga Natkovich updated PIG-2331:
--------------------------------

    Assignee: xuting zhao

Hi Xuting, please, take a look. Thejas will be helping you with this one - reach out to him
if need help
                
> BinStorage in LOAD statement failing when input has curly braces
> ----------------------------------------------------------------
>
>                 Key: PIG-2331
>                 URL: https://issues.apache.org/jira/browse/PIG-2331
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Anitha Raju
>            Assignee: xuting zhao
>             Fix For: 0.10
>
>
> Hi,
> When one uses curly braces in load statement when BinStorage() is used, it fails with
the following exception
> {code}
> Pig Stack Trace
> ---------------
> ERROR 2245:
> <file rep1.pig, line 1, column 4> Cannot get schema from loadFunc org.apache.pig.builtin.BinStorage
> org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator
for alias a
>         at org.apache.pig.PigServer.openIterator(PigServer.java:901)
>         at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:655)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:303)
>         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.exec(Grunt.java:81)
>         at org.apache.pig.Main.run(Main.java:561)
>         at org.apache.pig.Main.main(Main.java:111)
> Caused by: org.apache.pig.PigException: ERROR 1002: Unable to store alias a
>         at org.apache.pig.PigServer.storeEx(PigServer.java:1000)
>         at org.apache.pig.PigServer.store(PigServer.java:963)
>         at org.apache.pig.PigServer.openIterator(PigServer.java:876)
>         ... 7 more
> Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2245:
> <file rep1.pig, line 1, column 4> Cannot get schema from loadFunc org.apache.pig.builtin.BinStorage
>         at org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOLoad.java:154)
>         at org.apache.pig.newplan.logical.relational.LOLoad.getSchema(LOLoad.java:109)
>         at org.apache.pig.newplan.logical.relational.LOStore.getSchema(LOStore.java:68)
>         at org.apache.pig.newplan.logical.visitor.SchemaAliasVisitor.validate(SchemaAliasVisitor.java:60)
>         at org.apache.pig.newplan.logical.visitor.SchemaAliasVisitor.visit(SchemaAliasVisitor.java:84)
>         at org.apache.pig.newplan.logical.relational.LOStore.accept(LOStore.java:77)
>         at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
>         at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50)
>         at org.apache.pig.PigServer$Graph.compile(PigServer.java:1659)
>         at org.apache.pig.PigServer$Graph.compile(PigServer.java:1653)
>         at org.apache.pig.PigServer$Graph.access$200(PigServer.java:1378)
>         at org.apache.pig.PigServer.storeEx(PigServer.java:995)
>         ... 9 more
> Caused by: java.io.IOException: java.net.URISyntaxException: Illegal character in path
at index 72: hdfs://xyz/user/anithar/input/part-m-0000{0,1}
>         at org.apache.pig.builtin.BinStorage.getSchema(BinStorage.java:377)
>         at org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOLoad.java:150)
>         ... 20 more
> Caused by: java.net.URISyntaxException: Illegal character in path at index 72: hdfs://xyz/user/anithar/input/part-m-0000{0,1}
>         at java.net.URI$Parser.fail(URI.java:2809)
>         at java.net.URI$Parser.checkChars(URI.java:2982)
>         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
>         at java.net.URI$Parser.parse(URI.java:3014)
>         at java.net.URI.<init>(URI.java:578)
>         at org.apache.pig.builtin.BinStorage.getSchema(BinStorage.java:375)
>         ... 21 more
> {code}
> Script
> {code}
> a = load 'input/part-m-0000{0,1}' using BinStorage();
> dump a;
> {code}
>  The script runs well in 0.8 version. 
> Regards,
> Anitha
>  
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message