Sandhya Sundaresan commented on TRAFODION-1099:

There have been no issues with the Trafodion classpath being too big on any 
installations. So this isn't a critical issue anymore. No need to change to 
using wildcards which won't work correctly anyway. So resolving this as "no 

> LP Bug: 1437384 - sqenvcom.sh.    Our CLASSPATH is too big.
> -----------------------------------------------------------
>                 Key: TRAFODION-1099
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1099
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-general
>            Reporter: Guy Groulx
>            Assignee: Sandhya Sundaresan
>            Priority: Major
> sqenvcom.sh sets up CLASSPATH for trafodion.
> With HDP2.2, this CLASSPATH is huge.   On one of our system, echo $CLASSPATH 
> | wc -l return > 13000 bytes.
> I believe java/Linux truncates these variables when it's too big.
> Since going to HDP 2.2, we've been hit with "class not found" error 
> eventhough the jar is in CLASSPATH.
> http://stackoverflow.com/questions/1237093/using-wildcard-for-classpath 
> explains that we can use wildcards in CLASSPATH to reduce it.
> Rules:
> Use * and not *.jar.    Java assumes that * in classpath are for *.jar
> When using export CLASSPATH    use quotes so that * is not expanded.   EG:    
> export CLASSPATH=”/usr/hdp/current/hadoop-client/lib/*:${CLASSPATH}”
> We need to modify our sqenvcom.sh to use wildcards instead of putting 
> individual jar.

This message was sent by Atlassian JIRA

Reply via email to