Bird
0
0

Which command is used to view logs of a YARN application in Hadoop?

easy📝 Syntax Q12 of 15
Hadoop - Cluster Administration
Which command is used to view logs of a YARN application in Hadoop?
Ayarn logs -applicationId <app_id>
Bhdfs dfs -ls
Chadoop fs -put
Dyarn application -status
Step-by-Step Solution
Solution:
  1. Step 1: Identify commands related to logs

    Only yarn logs fetches logs for YARN apps.
  2. Step 2: Match command with correct syntax

    yarn logs -applicationId <app_id> shows logs for the given app.
  3. Final Answer:

    yarn logs -applicationId <app_id> -> Option A
  4. Quick Check:

    YARN logs command = yarn logs -applicationId [OK]
Quick Trick: Use 'yarn logs -applicationId' to get app logs fast [OK]
Common Mistakes:
  • Using 'hdfs dfs -ls' which lists files, not logs
  • Confusing 'hadoop fs -put' with log commands
  • Using 'yarn application -status' which shows status, not logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes