You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pradeep Kamath (JIRA)" <ji...@apache.org> on 2008/09/16 00:01:51 UTC

[jira] Commented: (PIG-431) When the specified load function cannot be found the error message is totally incomprehensible.

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

Pradeep Kamath commented on PIG-431:
------------------------------------

As part of my patch for PIG-269 (to merge PIG-183 from trunk to types branch) I have fixed this. I will submit the fix in that issue.

Here is what you will see now:
[pradeepk@chargesize:~/dev/pig-apache/pig/branches/types]java -cp pig.jar:$localc org.apache.pig.Main
2008-09-15 14:56:49,712 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: localhost:9000
2008-09-15 14:56:49,778 [main] WARN  org.apache.hadoop.fs.FileSystem - "localhost:9000" is a deprecated filesystem name. Use "hdfs://localhost:9000/" instead.
2008-09-15 14:56:50,184 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: localhost:9001
2008-09-15 14:56:50,305 [main] WARN  org.apache.hadoop.fs.FileSystem - "localhost:9000" is a deprecated filesystem name. Use "hdfs://localhost:9000/" instead.
grunt> a = load 'st10k' using NoSuchFunction(':');                              
java.lang.Error: java.io.IOException: Cannot instantiate:NoSuchFunction [Cannot instantiate:NoSuchFunction]
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.LoadClause(QueryParser.java:1088)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:869)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:728)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:529)
        at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:60)
        at org.apache.pig.PigServer.parseQuery(PigServer.java:290)
        at org.apache.pig.PigServer.registerQuery(PigServer.java:258)
        at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:432)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:242)
        at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:93)
        at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
        at org.apache.pig.Main.main(Main.java:282)
Caused by: java.io.IOException: Cannot instantiate:NoSuchFunction [Cannot instantiate:NoSuchFunction]
        at org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:405)
        at org.apache.pig.impl.logicalLayer.LOLoad.<init>(LOLoad.java:64)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.LoadClause(QueryParser.java:1086)
        ... 11 more
Caused by: java.lang.RuntimeException: Cannot instantiate:NoSuchFunction
        ... 14 more
Caused by: java.io.IOException: Could not resolve NoSuchFunction using imports: [, org.apache.pig.builtin., com.yahoo.pig.yst.sds.ULT., org.apache.pig.impl.builtin.] [Could not resolve NoSuchFunction using imports: [, org.apache.pig.builtin., com.yahoo.pig.yst.sds.ULT., org.apache.pig.impl.builtin.]]
        at org.apache.pig.impl.PigContext.resolveClassName(PigContext.java:389)
        at org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:402)
        ... 13 more
Caused by: java.lang.ClassNotFoundException: Could not resolve NoSuchFunction using imports: [, org.apache.pig.builtin., com.yahoo.pig.yst.sds.ULT., org.apache.pig.impl.builtin.]
        ... 15 more


If this is fine, it can be close when that fix is committed

> When the specified load function cannot be found the error message is totally incomprehensible.
> -----------------------------------------------------------------------------------------------
>
>                 Key: PIG-431
>                 URL: https://issues.apache.org/jira/browse/PIG-431
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: types_branch
>            Reporter: Alan Gates
>             Fix For: types_branch
>
>
> "a = load ':INPATH:/singlefile/studenttab10k' using NoSuchFunction(':');
> In Pig 1.x the resulting error message was:
> Could not resolve NoSuchFunction
> In 2.0 instead the user gets
> java.lang.ClassCastException: java.io.IOException
>     at org.apache.pig.impl.logicalLayer.parser.QueryParser.LoadClause(QueryParser.java:1104)
>     at org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:869)
>     at org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:728)
>     at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:529)
>     at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:60)
>     at org.apache.pig.PigServer.parseQuery(PigServer.java:290)
>     at org.apache.pig.PigServer.registerQuery(PigServer.java:258)
>     at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:432)
>     at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:242)
>     at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:83)
>     at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>     at org.apache.pig.Main.main(Main.java:306)

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