You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Santhosh Srinivasan (JIRA)" <ji...@apache.org> on 2008/07/29 22:29:32 UTC

[jira] Resolved: (PIG-309) order by query with user defined comparator dies complaining that it cannot find the comparator

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

Santhosh Srinivasan resolved PIG-309.
-------------------------------------

    Resolution: Duplicate
      Assignee: Santhosh Srinivasan

Duplicate of Pig-285

> order by query with user defined comparator dies complaining that it cannot find the comparator
> -----------------------------------------------------------------------------------------------
>
>                 Key: PIG-309
>                 URL: https://issues.apache.org/jira/browse/PIG-309
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: types_branch
>            Reporter: Alan Gates
>            Assignee: Santhosh Srinivasan
>             Fix For: types_branch
>
>
> Queries such as:
> {code}
> register testudf.jar;                                                                                                         
> a = load 'myfile';                                                                                                                   
> c = order a by * using org.apache.pig.test.udf.orderby.OrdDesc;                                                                                                 
> store c into 'outfile'
> {code}
> fail complaining that:
> 2008-07-12 17:56:55,600 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.io.IOException: Unable to store for alias: c [null]
> java.io.IOException: Unable to store for alias: c [null]
>     at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:270)
>     at org.apache.pig.PigServer.execute(PigServer.java:485)
>     at org.apache.pig.PigServer.store(PigServer.java:324)
>     at org.apache.pig.PigServer.store(PigServer.java:310)
>     at org.apache.pig.tools.grunt.GruntParser.processStore(GruntParser.java:173) 
>     at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:317)
>     at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:77)
>     at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:58)
>     at org.apache.pig.Main.main(Main.java:311)
> Caused by: org.apache.pig.backend.executionengine.ExecException
>     ... 9 more
> Caused by: org.apache.pig.impl.mapReduceLayer.JobCreationException
>     at org.apache.pig.impl.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:159)
>     at org.apache.pig.impl.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:103)
>     at org.apache.pig.impl.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:50)
>     at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:260)
>     ... 8 more
> Caused by: org.apache.pig.impl.mapReduceLayer.JobCreationException
>     at org.apache.pig.impl.mapReduceLayer.JobControlCompiler.getJobConf(JobControlCompiler.java:291)
>     at org.apache.pig.impl.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:153)
>     ... 11 more
> Caused by: java.lang.ClassNotFoundException: org.apache.pig.test.udf.orderby.OrdDesc
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:164)
>     at org.apache.pig.impl.mapReduceLayer.JobControlCompiler.getJobConf(JobControlCompiler.java:283)

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