[ 
https://issues.apache.org/jira/browse/HADOOP-8899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472507#comment-13472507
 ] 

Alejandro Abdelnur commented on HADOOP-8899:
--------------------------------------------

The potential downside of my suggested approach is that you lose the capability 
to order JARs in the classpath as '*' will be resolved in system specific way 
(I've seen this being done differently in different unix versions); which in my 
opinion should not be an issue as you should not have duplicate JARs in your 
classpath to start. The other downside is that you won't, from the logs, know 
exactly what is in the classpath, you'll only see a 'distributedcache-lib/*' 
entry in the classpath.
                
> Classpath exceeds maximum OS limit
> ----------------------------------
>
>                 Key: HADOOP-8899
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8899
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 1-win
>            Reporter: Ahmed El Baz
>
> We hit errors in TT due to long classpath value. One example is Oozie trying 
> to start a hive job, and it fails with the following error:
>  java.io.IOException: Command exceeds the OS command length limit: 8192, 
> command: "set CLASSPATH="….
> The classpath includes Hadoop Core + Hive Jars which are in the distributed 
> cache. This is causing the classpath to be too long giving the error above. A 
> viable long term fix is to generate a temporary JAR file in the task cache 
> directory which includes all elements in the long classpath, and then provide 
> this as the "-classpath" argument for the JVM to be spawned. This is gated 
> for Windows only.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to