Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4904 YARN Log tooling enhancements
  3. YARN-5524

Yarn live log aggregation does not throw if command line arg is wrong

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha2
    • Component/s: log-aggregation
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      When we used wrong command line arg for specify log file pattern, yarn did not throw any exception instead it pulled entire log onto the client.

      [hive@ctr-e20-1468887904486-0007-01-000003 ~]$ yarn logs -applicationId application_1470931023753_0001 -logFiles hive.*2016-08-11-21.* > logs
      

      NOTE: we are using -logFiles instead of -log_files

      This query should have failed.

        Attachments

        1. YARN-5524.001.patch
          4 kB
          Vrushali C
        2. YARN-5524.002.patch
          4 kB
          Vrushali C
        3. YARN-5524.3.patch
          2 kB
          Xuan Gong

          Activity

            People

            • Assignee:
              xgong Xuan Gong
              Reporter:
              prasanth_j Prasanth Jayachandran
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: