[
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