Help Center/ MapReduce Service/ FAQs/ Job Management/ How Do I View Logs of a Specified Yarn Task?
Updated on 2024-08-16 GMT+08:00

How Do I View Logs of a Specified Yarn Task?

  1. Log in to the active Master node as user root.
  2. Run the following command to initialize environment variables:

    sourceClient installation directory/bigdata_env

  3. 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

  4. Run the following command to obtain the logs of a specified task:

    yarn logs -applicationId application_ID of the job you want to view