Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
Slider 0.50
-
None
Description
During container launch the environment variables may get expanded in random order. So if you define a variable such as AGENT_LOG_ROOT = %LOG_DIRS% then it may not expand correctly if LOG_DIRS is expanded later. For example:
@set AGENT_LOG_ROOT=%LOG_DIRS%
....
@set LOG_DIRS=c:/hadoop/data/hadoop/logs/application_1411325548120_0018/container_1411325548120_0018_01_000010
Instead, the code should directly use the existing environment variables.