yarn logs

Dumps the YARN container logs.

Syntax

yarn logs -applicationID <application ID> 
     [-appowner <AppOwner>]
     [-containerId <ContainerID>]
     [-nodeAddress <NodeAddress>]

Parameters

Parameter Description
-applicationID Specifies an application Id.
-appowner <AppOwner> Specifies the application owner. This defaults to the current user if this option is not specified.
-containerID <ContainerId> Specifies the container ID. This is required when -nodeAddress is specified.
-nodeAddress <NodeAddress> Specifies the node address in the following format: nodename:port This is required when -containerID is specified.