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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.9.0
    • 2.9.0, 3.0.0-alpha1
    • yarn
    • None
    • 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.3.patch
          14 kB
          Xuan Gong
        2. YARN-5266.2.patch
          12 kB
          Xuan Gong
        3. YARN-5266.1.patch
          11 kB
          Xuan Gong

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment