YARN-5122. "yarn logs" for running containers should print an explicit footer saying that the log may be incomplete. Contributed by Jian He.
This commit is contained in:
parent
098ae11e35
commit
d6284428e8
|
@ -412,7 +412,9 @@ public class LogsCLI extends Configured implements Tool {
|
||||||
.queryParam("size", Long.toString(request.getBytes()))
|
.queryParam("size", Long.toString(request.getBytes()))
|
||||||
.accept(MediaType.TEXT_PLAIN).get(ClientResponse.class);
|
.accept(MediaType.TEXT_PLAIN).get(ClientResponse.class);
|
||||||
out.println(response.getEntity(String.class));
|
out.println(response.getEntity(String.class));
|
||||||
out.println("End of LogType:" + logFile);
|
out.println("End of LogType:" + logFile + ". This log file belongs"
|
||||||
|
+ " to a running container (" + containerIdStr + ") and so may"
|
||||||
|
+ " not be complete.");
|
||||||
out.flush();
|
out.flush();
|
||||||
} catch (ClientHandlerException | UniformInterfaceException ex) {
|
} catch (ClientHandlerException | UniformInterfaceException ex) {
|
||||||
System.err.println("Can not find the log file:" + logFile
|
System.err.println("Can not find the log file:" + logFile
|
||||||
|
|
Loading…
Reference in New Issue