You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Azrael (JIRA)" <ji...@apache.org> on 2014/04/30 09:55:15 UTC

[jira] [Created] (OOZIE-1816) LogInfo uses action name instead of id

Azrael created OOZIE-1816:
-----------------------------

             Summary: LogInfo uses action name instead of id
                 Key: OOZIE-1816
                 URL: https://issues.apache.org/jira/browse/OOZIE-1816
             Project: Oozie
          Issue Type: Improvement
    Affects Versions: 4.0.1
            Reporter: Azrael
            Priority: Minor


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
{code: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>
{code}

log messages
{code}
$ 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

{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)