Ted Yu created SLIDER-163:
-----------------------------
Summary: Change recommended app_log_dir value
Key: SLIDER-163
URL: https://issues.apache.org/jira/browse/SLIDER-163
Project: Slider
Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
With the following value:
{code}
"site.global.app_log_dir": "${AGENT_LOG_ROOT}/app/log",
{code}
I observed the actual log directory having deeply nested structure:
{code}
-Dhbase.log.dir=/grid/0/hdp/yarn/log/application_1403300788015_0005/container_1403300788015_0005_01_000003,/grid/1/hdp/yarn/log/application_1403300788015_0005/container_1403300788015_0005_01_000003,/grid/2/hdp/yarn/log/application_1403300788015_0005/container_1403300788015_0005_01_000003,/grid/3/hdp/yarn/log/application_1403300788015_0005/container_1403300788015_0005_01_000003,/grid/4/hdp/yarn/log/application_1403300788015_0005/container_1403300788015_0005_01_000003,/grid/5/hdp/yarn/log/application_1403300788015_0005/container_1403300788015_0005_01_000003/app/log
{code}
This was due to ApplicationConstants.Environment.LOG_DIRS containing all
possible locations for app logs.
I tried a few other options and found that the following achieves what is
desired:
{code}
"site.global.app_log_dir": "app/log",
{code}
Under
/grid/4/hdp/yarn/local/usercache/yarn/appcache/application_1403300788015_0007/container_1403300788015_0007_01_000003/app/log/,
I saw:
{code}
gc.log-201406241714
hbase-yarn-master-hor12n11.gq1.ygridcore.net.out
hbase-yarn-master-hor12n11.gq1.ygridcore.net.log SecurityAuth.audit
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)