Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ trait ProcessEngineConnLaunch extends EngineConnLaunch with Logging {
environment.put(PREFER_IP_ADDRESS.toString, Configuration.PREFER_IP_ADDRESS.toString)
case ENGINECONN_ENVKEYS =>
environment.put(ENGINECONN_ENVKEYS.toString, GovernanceCommonConf.ENGINECONN_ENVKEYS)
case LINKIS_HOME => putIfExists(LINKIS_HOME)
case _ =>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ object EnvConfiguration {

val LOG4J2_XML_FILE = CommonVars[String]("wds.linkis.engineconn.log4j2.xml.file", "log4j2.xml")

val LINKIS_PUBLIC_MODULE_PATH = CommonVars(
"wds.linkis.public_module.path",
Configuration.getLinkisHome + "/lib/linkis-commons/public-module"
)
val LINKIS_PUBLIC_MODULE_PATH =
CommonVars("wds.linkis.public_module.path", "/lib/linkis-commons/public-module")

val LINKIS_CONF_DIR = CommonVars("LINKIS_CONF_DIR", Configuration.getLinkisHome() + "/conf")
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ object Environment extends Enumeration {

type Environment = Value

val USER, ECM_HOME, PWD, PATH, SHELL, JAVA_HOME, CLASSPATH, HADOOP_HOME, HADOOP_CONF_DIR,
HIVE_CONF_DIR, LOG_DIRS, TEMP_DIRS, ECM_HOST, ECM_PORT, RANDOM_PORT, SERVICE_DISCOVERY,
PREFER_IP_ADDRESS, UDF_JARS, ENGINECONN_ENVKEYS = Value
val USER, ECM_HOME, PWD, PATH, SHELL, JAVA_HOME, LINKIS_HOME, CLASSPATH, HADOOP_HOME,
HADOOP_CONF_DIR, HIVE_CONF_DIR, LOG_DIRS, TEMP_DIRS, ECM_HOST, ECM_PORT, RANDOM_PORT,
SERVICE_DISCOVERY, PREFER_IP_ADDRESS, UDF_JARS, ENGINECONN_ENVKEYS = Value

def variable(environment: Environment): String =
LaunchConstants.EXPANSION_MARKER_LEFT + environment + LaunchConstants.EXPANSION_MARKER_RIGHT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,15 @@ abstract class JavaProcessEngineConnLaunchBuilder
// first, add engineconn conf dirs.
addPathToClassPath(environment, buildPath(Seq(variable(PWD), ENGINE_CONN_CONF_DIR_NAME)))
// then, add LINKIS_CONF_DIR conf dirs.
addPathToClassPath(environment, buildPath(Seq(EnvConfiguration.LINKIS_CONF_DIR.getValue)))
addPathToClassPath(environment, buildPath(Seq(variable(LINKIS_HOME), "conf")))
// then, add engineconn libs.
addPathToClassPath(environment, buildPath(Seq(variable(PWD), ENGINE_CONN_LIB_DIR_NAME + "/*")))
// then, add public modules.
if (!enablePublicModule) {
addPathToClassPath(environment, buildPath(Seq(LINKIS_PUBLIC_MODULE_PATH.getValue + "/*")))
addPathToClassPath(
environment,
buildPath(Seq(variable(LINKIS_HOME), LINKIS_PUBLIC_MODULE_PATH.getValue + "/*"))
)
}
// finally, add the suitable properties key to classpath
val taskClassPathFiles = EnvConfiguration.ENGINE_CONN_CLASSPATH_FILES.getValue(
Expand Down
Loading