Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5266

Wrong exit code while trying to get app logs using regex via CLI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: yarn
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The test is trying to do negative test by passing regex as 'ds+' and expects exit code != 0.
      Exit Code is zero and the error message is typed more than once

      RUNNING: /usr/hdp/current/hadoop-yarn-client/bin/yarn  logs -applicationId application_1465500362360_0016 -logFiles ds+
      Can not find any log file matching the pattern: [ds+] for the application: application_1465500362360_0016
      2016-06-14 19:19:25,079|beaver.machine|INFO|4427|140145752217344|MainThread|Can not find any log file matching the pattern: [ds+] for the application: application_1465500362360_0016
      2016-06-14 19:19:25,216|beaver.machine|INFO|4427|140145752217344|MainThread|Can not find any log file matching the pattern: [ds+] for the application: application_1465500362360_0016
      2016-06-14 19:19:25,331|beaver.machine|INFO|4427|140145752217344|MainThread|Can not find any log file matching the pattern: [ds+] for the application: application_1465500362360_0016
      2016-06-14 19:19:25,432|beaver.machine|INFO|4427|140145752217344|MainThread|Can not find any log file matching the pattern: [ds+] for the application: application_1465500362360_0016
      

        Attachments

        1. YARN-5266.1.patch
          11 kB
          Xuan Gong
        2. YARN-5266.2.patch
          12 kB
          Xuan Gong
        3. YARN-5266.3.patch
          14 kB
          Xuan Gong

          Activity

            People

            • Assignee:
              xgong Xuan Gong
              Reporter:
              ssathish@hortonworks.com Sumana Sathish
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: