Skip to content

Commit

Permalink
Merge pull request #965 from lunescode/dev-1.0.2
Browse files Browse the repository at this point in the history
Fix bug about PR #950, Related issues: #946.
  • Loading branch information
peacewong authored Sep 28, 2021
2 parents 119b1d1 + d0eec57 commit dace507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ trait ProcessEngineConnLaunch extends EngineConnLaunch with Logging {
case HADOOP_CONF_DIR => putIfExists(HADOOP_CONF_DIR)
case HIVE_CONF_DIR => putIfExists(HIVE_CONF_DIR)
case RANDOM_PORT => environment.put(RANDOM_PORT.toString, findAvailPort().toString)
case EUREKA_PREFER_IP => environment.put(EUREKA_PREFER_IP.toString, Configuration.EUREKA_PREFER_IP.toString)
case _ =>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ 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 = Value
ECM_HOST, ECM_PORT, RANDOM_PORT, SERVICE_DISCOVERY,EUREKA_PREFER_IP = Value

def variable(environment: Environment): String = LaunchConstants.EXPANSION_MARKER_LEFT + environment + LaunchConstants.EXPANSION_MARKER_RIGHT

Expand Down

0 comments on commit dace507

Please sign in to comment.