Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1816

LogInfo uses action name instead of id

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 4.0.1
    • None
    • None
    • None

    Description

      LogInfo uses the actionId which contains jobId.
      If use actionName for the action parameter, it reduce the duplicated info.

      To enable, set oozie.service.XLogStreamingService.actionname.enable to true.

      oozie-site.xml

      <property>    
          <name>oozie.service.XLogStreamingService.actionname.enable</name>
          <value>true</value>
          <description>
              If true, log will contain action name at action filter, otherwise actionId.
          </description>
      </property>
      

      log messages

      $ oozie job -log 0000002-140430134109257-oozie-seoe-W -logfilter loglevel=INFO
      
      2014-04-30 13:46:27,648  INFO ActionStartXCommand:539 - USER[seoeun] GROUP[user] TOKEN[] APP[test] JOB[0000002-140430134109257-oozie-seoe-W] ACTION[:start:] Start action [0000002-140430134109257-oozie-seoe-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
      2014-04-30 13:46:27,723  INFO ActionStartXCommand:539 - USER[seoeun] GROUP[user] TOKEN[] APP[test] JOB[0000002-140430134109257-oozie-seoe-W] ACTION[shell-1] Start action [0000002-140430134109257-oozie-seoe-W@shell-1] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
      
      
      $ oozie job -log 0000000-140430134109257-oozie-seoe-C -logfilter loglevel=INFO
      
      2014-04-30 13:46:26,962  INFO CoordActionNotificationXCommand:539 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-140430134109257-oozie-seoe-C] ACTION[1] STARTED Coordinator Notification actionId=0000000-140430134109257-oozie-seoe-C@1 : WAITING
      2014-04-30 13:46:26,964  INFO CoordActionNotificationXCommand:539 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-140430134109257-oozie-seoe-C] ACTION[1] ENDED Coordinator Notification actionId=0000000-140430134109257-oozie-seoe-C@1
      2014-04-30 13:46:27,477  INFO CoordActionNotificationXCommand:539 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-140430134109257-oozie-seoe-C] ACTION[2] STARTED Coordinator Notification actionId=0000000-140430134109257-oozie-seoe-C@2 : WAITING
      2014-04-30 13:46:27,481  INFO CoordActionNotificationXCommand:539 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-140430134109257-oozie-seoe-C] ACTION[2] ENDED Coordinator Notification actionId=0000000-140430134109257-oozie-seoe-C@2
      
      

      Attachments

        1. OOZIE-1816.1.patch
          7 kB
          seoeun
        2. OOZIE-1816.2.patch
          9 kB
          seoeun

        Activity

          People

            Unassigned Unassigned
            seoeun25 seoeun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: