|
@@ -24,8 +24,6 @@ import java.net.URI;
|
|
import java.util.LinkedHashSet;
|
|
import java.util.LinkedHashSet;
|
|
import java.util.Set;
|
|
import java.util.Set;
|
|
|
|
|
|
-import org.apache.commons.logging.Log;
|
|
|
|
-import org.apache.commons.logging.LogFactory;
|
|
|
|
import org.apache.hadoop.classification.InterfaceAudience.Private;
|
|
import org.apache.hadoop.classification.InterfaceAudience.Private;
|
|
import org.apache.hadoop.classification.InterfaceStability.Unstable;
|
|
import org.apache.hadoop.classification.InterfaceStability.Unstable;
|
|
import org.apache.hadoop.conf.Configuration;
|
|
import org.apache.hadoop.conf.Configuration;
|
|
@@ -50,12 +48,15 @@ import org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider;
|
|
import org.apache.hadoop.yarn.webapp.util.WebAppUtils;
|
|
import org.apache.hadoop.yarn.webapp.util.WebAppUtils;
|
|
|
|
|
|
import com.google.common.annotations.VisibleForTesting;
|
|
import com.google.common.annotations.VisibleForTesting;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
|
|
/** Main class for Timeline Reader. */
|
|
/** Main class for Timeline Reader. */
|
|
@Private
|
|
@Private
|
|
@Unstable
|
|
@Unstable
|
|
public class TimelineReaderServer extends CompositeService {
|
|
public class TimelineReaderServer extends CompositeService {
|
|
- private static final Log LOG = LogFactory.getLog(TimelineReaderServer.class);
|
|
|
|
|
|
+ private static final Logger LOG =
|
|
|
|
+ LoggerFactory.getLogger(TimelineReaderServer.class);
|
|
private static final int SHUTDOWN_HOOK_PRIORITY = 30;
|
|
private static final int SHUTDOWN_HOOK_PRIORITY = 30;
|
|
static final String TIMELINE_READER_MANAGER_ATTR =
|
|
static final String TIMELINE_READER_MANAGER_ATTR =
|
|
"timeline.reader.manager";
|
|
"timeline.reader.manager";
|
|
@@ -214,7 +215,7 @@ public class TimelineReaderServer extends CompositeService {
|
|
timelineReaderServer.init(conf);
|
|
timelineReaderServer.init(conf);
|
|
timelineReaderServer.start();
|
|
timelineReaderServer.start();
|
|
} catch (Throwable t) {
|
|
} catch (Throwable t) {
|
|
- LOG.fatal("Error starting TimelineReaderWebServer", t);
|
|
|
|
|
|
+ LOG.error("Error starting TimelineReaderWebServer", t);
|
|
ExitUtil.terminate(-1, "Error starting TimelineReaderWebServer");
|
|
ExitUtil.terminate(-1, "Error starting TimelineReaderWebServer");
|
|
}
|
|
}
|
|
return timelineReaderServer;
|
|
return timelineReaderServer;
|