public class HdfsTaskLogs extends Object implements io.druid.tasklogs.TaskLogs
| Constructor and Description |
|---|
HdfsTaskLogs(HdfsTaskLogsConfig config,
org.apache.hadoop.conf.Configuration hadoopConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
pushTaskLog(String taskId,
File logFile) |
com.google.common.base.Optional<com.google.common.io.ByteSource> |
streamTaskLog(String taskId,
long offset) |
@Inject public HdfsTaskLogs(HdfsTaskLogsConfig config, org.apache.hadoop.conf.Configuration hadoopConfig)
public void pushTaskLog(String taskId, File logFile) throws IOException
pushTaskLog in interface io.druid.tasklogs.TaskLogPusherIOExceptionpublic com.google.common.base.Optional<com.google.common.io.ByteSource> streamTaskLog(String taskId, long offset) throws IOException
streamTaskLog in interface io.druid.tasklogs.TaskLogStreamerIOExceptionCopyright © 2011–2015. All rights reserved.