You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:19:44 UTC
[jira] [Created] (TRAFODION-1099) LP Bug: 1437384 - sqenvcom.sh.
Our CLASSPATH is too big.
Alice Chen created TRAFODION-1099:
-------------------------------------
Summary: 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: Critical
Fix For: 2.0-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)