You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Created) (JIRA)" <ji...@apache.org> on 2011/09/29 20:21:45 UTC

[jira] [Created] (PIG-2310) bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME

bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME
----------------------------------------------------------------

                 Key: PIG-2310
                 URL: https://issues.apache.org/jira/browse/PIG-2310
             Project: Pig
          Issue Type: Bug
          Components: impl
    Affects Versions: 0.9.1, 0.10
            Reporter: Daniel Dai
            Assignee: Daniel Dai
            Priority: Critical
             Fix For: 0.9.1, 0.10




--
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

        

[jira] [Updated] (PIG-2310) bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME

Posted by "Daniel Dai (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dai updated PIG-2310:
----------------------------

    Attachment: PIG-2310-1.patch
    
> bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME
> ----------------------------------------------------------------
>
>                 Key: PIG-2310
>                 URL: https://issues.apache.org/jira/browse/PIG-2310
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.1, 0.10
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: 0.9.1, 0.10
>
>         Attachments: PIG-2310-1.patch
>
>


--
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

        

[jira] [Commented] (PIG-2310) bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME

Posted by "Alan Gates (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117676#comment-13117676 ] 

Alan Gates commented on PIG-2310:
---------------------------------

+1, looks good, and works both before and after "ant jar".
                
> bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME
> ----------------------------------------------------------------
>
>                 Key: PIG-2310
>                 URL: https://issues.apache.org/jira/browse/PIG-2310
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.1, 0.10
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: 0.9.1, 0.10
>
>         Attachments: PIG-2310-1.patch, PIG-2310-2.patch
>
>


--
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

        

[jira] [Commented] (PIG-2310) bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME

Posted by "Alan Gates (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117542#comment-13117542 ] 

Alan Gates commented on PIG-2310:
---------------------------------

There's more to this than just the jars being present.  When I tried the patch in the directory /homes/hortonal/src/pig/branches/0.9/2310/branch-0.9 I got:

{code}
 bin/pig -x local
bin/pig: line 68: [: ./bin: binary operator expected
bin/pig: line 262: [: ./bin: binary operator expected
Exception in thread "main" java.lang.NoClassDefFoundError: /home/hortonal/src/pig/branches/0/9/2310/branch-0/9/bin////logs
Caused by: java.lang.ClassNotFoundException: .home.hortonal.src.pig.branches.0.9.2310.branch-0.9.bin....logs
        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:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
{code}

Notice the way it's mangling my path by replacing dots with slashes.

Also, I get a similar error when I try to run this in a directory without dots.
                
> bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME
> ----------------------------------------------------------------
>
>                 Key: PIG-2310
>                 URL: https://issues.apache.org/jira/browse/PIG-2310
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.1, 0.10
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: 0.9.1, 0.10
>
>         Attachments: PIG-2310-1.patch
>
>


--
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

        

[jira] [Resolved] (PIG-2310) bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME

Posted by "Daniel Dai (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dai resolved PIG-2310.
-----------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed

Patch committed to both trunk and 0.9 branch.
                
> bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME
> ----------------------------------------------------------------
>
>                 Key: PIG-2310
>                 URL: https://issues.apache.org/jira/browse/PIG-2310
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.1, 0.10
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: 0.9.1, 0.10
>
>         Attachments: PIG-2310-1.patch, PIG-2310-2.patch
>
>


--
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

        

[jira] [Updated] (PIG-2310) bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME

Posted by "Daniel Dai (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dai updated PIG-2310:
----------------------------

    Attachment: PIG-2310-2.patch

The error is because of the CDPATH setting on the target machine. Once CDPATH is set, cd will echo the path. 

Note this is issue is there for a long time and is not related to any recent change.
                
> bin/pig fail when both pig-0.9.1.jar and pig.jar are in PIG_HOME
> ----------------------------------------------------------------
>
>                 Key: PIG-2310
>                 URL: https://issues.apache.org/jira/browse/PIG-2310
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.1, 0.10
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: 0.9.1, 0.10
>
>         Attachments: PIG-2310-1.patch, PIG-2310-2.patch
>
>


--
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