You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Hans Zeller (JIRA)" <ji...@apache.org> on 2016/05/20 01:20:17 UTC
[jira] [Updated] (TRAFODION-1099) LP Bug: 1437384 - sqenvcom.sh.
Our CLASSPATH is too big.
[ https://issues.apache.org/jira/browse/TRAFODION-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hans Zeller updated TRAFODION-1099:
-----------------------------------
Fix Version/s: (was: 2.0-incubating)
2.1-incubating
> 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
> Fix For: 2.1-incubating
>
>
> 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
(v6.3.4#6332)