How Do I View Logs of a Specified Yarn Task?
- Log in to the active Master node as user root.
- Run the following command to initialize environment variables:
sourceClient installation directory/bigdata_env
- If Kerberos authentication is enabled for the cluster, run the following command to authenticate the user. If Kerberos authentication is disabled, skip this step.
kinit MRS cluster user
- Run the following command to obtain the logs of a specified task:
yarn logs -applicationId application_ID of the job you want to view
Parent topic: Job Development