thisNodeFile.getPath()); DataInputStream valueStream; LogKey key = new LogKey(); valueStream = reader.next(key); while (valueStream != null) { if (getAllContainers || (key.toString().equals(containerIdStr))) { if (createPrintStream) { os = LogToolUtils.createPrintStream( logRequest.getOutputLocalDir(), thisNodeFile.getPath().getName(), key.toString()); if (logTypes == null || logTypes.isEmpty() || logTypes.contains(fileType)) { LogToolUtils.outputContainerLog(key.toString(), nodeName, fileType, fileLength, size, Times.format(thisNodeFile.getModificationTime()), key = new LogKey(); valueStream = reader.next(key);
LogReader reader = null; DataInputStream valueStream; AggregatedLogFormat.LogKey key = new AggregatedLogFormat.LogKey(); AggregatedLogFormat.ContainerLogsReader logReader = null; Path location; for (AggregatedLogFormat.LogKey containerKey : containerNames) { valueStream = reader.next(key); while (valueStream != null && !key.equals(containerKey)) { valueStream = reader.next(key); key = new AggregatedLogFormat.LogKey(); logReader = null;
public void append(LogKey logKey, LogValue logValue) throws IOException { Set<File> pendingUploadFiles = logValue.getPendingLogFilesToUploadForThisContainer(); if (pendingUploadFiles.size() == 0) { return; } DataOutputStream out = this.writer.prepareAppendKey(-1); logKey.write(out); out.close(); out = this.writer.prepareAppendValue(-1); logValue.write(out, pendingUploadFiles); out.close(); }
LogKey key1 = new LogKey(containerId.toString());
logWriter.initialize(conf, remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId1); String randomUser = "randomUser"; LogValue logValue =
LogWriter logWriter = new LogWriter(conf, remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId1); String randomUser = "randomUser"; LogValue logValue =
try (LogWriter logWriter = new LogWriter()) { logWriter.initialize(conf, remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId1);
LogWriter logWriter = new LogWriter(conf, remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId); LogValue logValue = new LogValue(Collections.singletonList(srcFileRoot.toString()), LogKey rLogKey = new LogKey(); DataInputStream dis = logReader.next(rLogKey); Writer writer = new StringWriter();
try { DataInputStream valueStream; LogKey key = new LogKey(); valueStream = reader.next(key); while (valueStream != null) { if (getAllContainers || (key.toString().equals(containerIdStr))) { ContainerLogMeta containerLogMeta = new ContainerLogMeta( key.toString(), thisNodeFile.getPath().getName()); while (true) { try { key = new LogKey(); valueStream = reader.next(key);
@Override public void write(LogKey logKey, LogValue logValue) throws IOException { String containerId = logKey.toString(); Set<File> pendingUploadFiles = logValue .getPendingLogFilesToUploadForThisContainer();
AggregatedLogFormat.LogKey key = new AggregatedLogFormat.LogKey(); DataInputStream valueStream = reader.next(key); foundAnyLogs = true; } catch (EOFException eofException) { key = new AggregatedLogFormat.LogKey(); valueStream = reader.next(key); break;
logWriter.initialize(conf, remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId); LogValue logValue = spy(new LogValue(Collections.singletonList(srcFileRoot.toString()),
LogReader reader = null; DataInputStream valueStream; AggregatedLogFormat.LogKey key = new AggregatedLogFormat.LogKey(); AggregatedLogFormat.ContainerLogsReader logReader = null; try { for (AggregatedLogFormat.LogKey containerKey : containerNames) { valueStream = reader.next(key); while (valueStream != null && !key.equals(containerKey)) { valueStream = reader.next(key);
LogWriter logWriter = new LogWriter(conf, remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId); LogValue logValue = spy(new LogValue(Collections.singletonList(srcFileRoot.toString()),
logWriter.initialize(new Configuration(), remoteAppLogFile, ugi); LogKey logKey = new LogKey(testContainerId); LogValue logValue = spy(new LogValue(Collections.singletonList(srcFileRoot.toString()),
try { aclScanner = reader.createScanner(); LogKey key = new LogKey(); Map<ApplicationAccessType, String> acls = new HashMap<ApplicationAccessType, String>(); while (!aclScanner.atEnd()) { TFile.Reader.Scanner.Entry entry = aclScanner.entry(); key.readFields(entry.getKeyStream()); if (key.toString().equals(APPLICATION_ACL_KEY.toString())) { DataInputStream valueStream = entry.getValueStream(); while (true) {