HADOOP-6828. Herrior uses old way of accessing logs directories. Contributed by Sreekanth Ramakrishnan

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@955438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Boudnik 2010-06-17 01:34:08 +00:00
parent c6b8095b02
commit 5807065a5b
2 changed files with 5 additions and 2 deletions

View File

@ -999,6 +999,9 @@ Release 0.21.0 - Unreleased
BUG FIXES BUG FIXES
HADOOP-6828. Herrior uses old way of accessing logs directories (Sreekanth
Ramakrishnan via cos)
HADOOP-6788. [Herriot] Exception exclusion functionality is not working HADOOP-6788. [Herriot] Exception exclusion functionality is not working
correctly. (Vinay Thota via cos) correctly. (Vinay Thota via cos)

View File

@ -245,8 +245,8 @@ public aspect DaemonProtocolAspect {
public String DaemonProtocol.getFilePattern() { public String DaemonProtocol.getFilePattern() {
//We use the environment variable HADOOP_LOGFILE to get the //We use the environment variable HADOOP_LOGFILE to get the
//pattern to use in the search. //pattern to use in the search.
String logDir = System.getenv("HADOOP_LOG_DIR"); String logDir = System.getProperty("hadoop.log.dir");
String daemonLogPattern = System.getenv("HADOOP_LOGFILE"); String daemonLogPattern = System.getProperty("hadoop.log.file");
if(daemonLogPattern == null && daemonLogPattern.isEmpty()) { if(daemonLogPattern == null && daemonLogPattern.isEmpty()) {
return "*"; return "*";
} }