[ https://issues.apache.org/jira/browse/TRAFODION-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Smits updated TRAFODION-1099: ------------------------------------ Fix Version/s: (was: 2.1-incubating) 2.2.0 > 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 > Fix For: 2.2.0 > > > 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 (v7.6.3#76005)