You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2009/05/28 02:49:45 UTC

[jira] Created: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Collect shuffling information from userlogs/syslog
--------------------------------------------------

                 Key: CHUKWA-267
                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
             Project: Hadoop Chukwa
          Issue Type: New Feature
          Components: data collection
    Affects Versions: 0.2.0
         Environment: Redhat EL 5.1, Java 6
            Reporter: Eric Yang
             Fix For: 0.1.2, 0.2.0


Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715748#action_12715748 ] 

Ari Rabkin commented on CHUKWA-267:
-----------------------------------

+1 on this, for both 0.1.2 and also Trunk.

But in the future I think we should probably do the name management on the agent side.  This requires changing the agent protocol syntax, so it's a 0.2 feature at least.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267-2.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Cheng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714213#action_12714213 ] 

Cheng edited comment on CHUKWA-267 at 5/28/09 4:14 PM:
-------------------------------------------------------

Not sure if I understand the code correctly, below are some questions I have.

1. chukwaClientIsNull and chukwaLock. I guess the correct order might be

        synchronized (chukwaLock) {
            chukwaClientIsNull = false;
            if (chukwaClientIsNull) {
                 ..............
            }
        }

  instead of,

      if (chukwaClientIsNull) {
         synchronized (chukwaLock) {
             chukwaClientIsNull = false;
             ...........
          }
       }


2. Currently in the patch, the chukwaClient is created in method TaskLogAppender.subAppend. If the agent is not running, will the block inside "synchronized (chukwaLock)" called many times? If yes, our appender may impact the task track and then we may need a background thread to create chukwaClient. If no, can we move the code into constructor?

Thanks,
Cheng

-Cheng


      was (Author: zhangyongjiang):
    Not sure if I understand the code correctly, below are some questions I have.

1. chukwaClientIsNull and chukwaLock. I guess the correct order might be
<pre>
        synchronized (chukwaLock) {
            chukwaClientIsNull = false;
            if (chukwaClientIsNull) {
                 ..............
            }
        }
</pre>
  instead of,

      if (chukwaClientIsNull) {
         synchronized (chukwaLock) {
             chukwaClientIsNull = false;
             ...........
          }
       }


2. Currently in the patch, the chukwaClient is created in method TaskLogAppender.subAppend. If the agent is not running, will the block inside "synchronized (chukwaLock)" called many times? If yes, our appender may impact the task track and then we may need a background thread to create chukwaClient. If no, can we move the code into constructor?

Thanks,
Cheng

-Cheng

  
> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Mac Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715753#action_12715753 ] 

Mac Yang commented on CHUKWA-267:
---------------------------------

This is new functionality. I don't think it should go into 0.1.2.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267-2.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Jerome Boulon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714230#action_12714230 ] 

Jerome Boulon commented on CHUKWA-267:
--------------------------------------

the Add need to be done inside this loop
if (chukwaClient != null )  { ... }

Not sure to understand, why you're writing to a file then you're calling the parent method??
+      this.qw.write(RecordConstants.escapeAllButLastRecordSeparator("\n",this.layout.format(event)));
+      super.subAppend(event);

Chukwa registration should  be extracted to a separate class in order to be reused cross-appender.

+  if (chukwaClientIsNull) {
+        synchronized (chukwaLock) {
+          chukwaClientIsNull = false;
+          String log4jFileName = getFile();
+          String recordType = getRecordType();
+          long currentLength = 0L;
+          if (chukwaClient == null) {
+            chukwaClient = new ChukwaAgentController();
+            chukwaClientIsNull = false;
+          }
+          long adaptorID = chukwaClient.add(ChukwaAgentController.CharFileTailUTF8NewLineEscaped,
+              recordType,currentLength + " " + log4jFileName, currentLength);
+
+          // Setup a shutdownHook for the controller
+          clientFinalizer = new ClientFinalizer(chukwaClient);
+          Runtime.getRuntime().addShutdownHook(clientFinalizer);
[...]

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Cheng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714213#action_12714213 ] 

Cheng commented on CHUKWA-267:
------------------------------

Not sure if I understand the code correctly, below are some questions I have.

1. chukwaClientIsNull and chukwaLock. I guess the correct order might be

        synchronized (chukwaLock) {
            chukwaClientIsNull = false;
            if (chukwaClientIsNull) {
                 ..............
            }
        }

  instead of,

      if (chukwaClientIsNull) {
         synchronized (chukwaLock) {
             chukwaClientIsNull = false;
             ...........
          }
       }


2. Currently in the patch, the chukwaClient is created in method TaskLogAppender.subAppend. If the agent is not running, will the block inside "synchronized (chukwaLock)" called many times? If yes, our appender may impact the task track and then we may need a background thread to create chukwaClient. If no, can we move the code into constructor?

Thanks,
Cheng

-Cheng


> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated CHUKWA-267:
-----------------------------

    Attachment: CHUKWA-267.patch

Added TaskLogAppender for Chukwa to stream over system log file for task.  This will provide extra insight in the task activities.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Cheng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714213#action_12714213 ] 

Cheng edited comment on CHUKWA-267 at 5/28/09 4:13 PM:
-------------------------------------------------------

Not sure if I understand the code correctly, below are some questions I have.

1. chukwaClientIsNull and chukwaLock. I guess the correct order might be
<pre>
        synchronized (chukwaLock) {
            chukwaClientIsNull = false;
            if (chukwaClientIsNull) {
                 ..............
            }
        }
</pre>
  instead of,

      if (chukwaClientIsNull) {
         synchronized (chukwaLock) {
             chukwaClientIsNull = false;
             ...........
          }
       }


2. Currently in the patch, the chukwaClient is created in method TaskLogAppender.subAppend. If the agent is not running, will the block inside "synchronized (chukwaLock)" called many times? If yes, our appender may impact the task track and then we may need a background thread to create chukwaClient. If no, can we move the code into constructor?

Thanks,
Cheng

-Cheng


      was (Author: zhangyongjiang):
    Not sure if I understand the code correctly, below are some questions I have.

1. chukwaClientIsNull and chukwaLock. I guess the correct order might be

        synchronized (chukwaLock) {
            chukwaClientIsNull = false;
            if (chukwaClientIsNull) {
                 ..............
            }
        }

  instead of,

      if (chukwaClientIsNull) {
         synchronized (chukwaLock) {
             chukwaClientIsNull = false;
             ...........
          }
       }


2. Currently in the patch, the chukwaClient is created in method TaskLogAppender.subAppend. If the agent is not running, will the block inside "synchronized (chukwaLock)" called many times? If yes, our appender may impact the task track and then we may need a background thread to create chukwaClient. If no, can we move the code into constructor?

Thanks,
Cheng

-Cheng

  
> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716692#action_12716692 ] 

Hudson commented on CHUKWA-267:
-------------------------------

Integrated in Chukwa-trunk #44 (See [http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/44/])
    . Added TaskLogAppender for collecting Task Tracker Log file. (Eric Yang)


> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267-2.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Jerome Boulon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714230#action_12714230 ] 

Jerome Boulon edited comment on CHUKWA-267 at 5/28/09 4:48 PM:
---------------------------------------------------------------

the Add need to be done inside this loop
if (chukwaClient == null )  { ... }

Not sure to understand, why you're writing to a file then you're calling the parent method??
+      this.qw.write(RecordConstants.escapeAllButLastRecordSeparator("\n",this.layout.format(event)));
+      super.subAppend(event);

Chukwa registration should  be extracted to a separate class in order to be reused cross-appender.

+  if (chukwaClientIsNull) {
+        synchronized (chukwaLock) {
+          chukwaClientIsNull = false;
+          String log4jFileName = getFile();
+          String recordType = getRecordType();
+          long currentLength = 0L;
+          if (chukwaClient == null) {
+            chukwaClient = new ChukwaAgentController();
+            chukwaClientIsNull = false;
+          }
+          long adaptorID = chukwaClient.add(ChukwaAgentController.CharFileTailUTF8NewLineEscaped,
+              recordType,currentLength + " " + log4jFileName, currentLength);
+
+          // Setup a shutdownHook for the controller
+          clientFinalizer = new ClientFinalizer(chukwaClient);
+          Runtime.getRuntime().addShutdownHook(clientFinalizer);
[...]

      was (Author: jboulon):
    the Add need to be done inside this loop
if (chukwaClient != null )  { ... }

Not sure to understand, why you're writing to a file then you're calling the parent method??
+      this.qw.write(RecordConstants.escapeAllButLastRecordSeparator("\n",this.layout.format(event)));
+      super.subAppend(event);

Chukwa registration should  be extracted to a separate class in order to be reused cross-appender.

+  if (chukwaClientIsNull) {
+        synchronized (chukwaLock) {
+          chukwaClientIsNull = false;
+          String log4jFileName = getFile();
+          String recordType = getRecordType();
+          long currentLength = 0L;
+          if (chukwaClient == null) {
+            chukwaClient = new ChukwaAgentController();
+            chukwaClientIsNull = false;
+          }
+          long adaptorID = chukwaClient.add(ChukwaAgentController.CharFileTailUTF8NewLineEscaped,
+              recordType,currentLength + " " + log4jFileName, currentLength);
+
+          // Setup a shutdownHook for the controller
+          clientFinalizer = new ClientFinalizer(chukwaClient);
+          Runtime.getRuntime().addShutdownHook(clientFinalizer);
[...]
  
> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated CHUKWA-267:
-----------------------------

    Attachment: CHUKWA-267-2.patch

Update ChukwaDailyRollingFileAppender to use the same class.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267-2.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714219#action_12714219 ] 

Eric Yang commented on CHUKWA-267:
----------------------------------

We do not want synchronize to occur on every log statement, the performance will be severely impacted, if we lock on every log statement.  Hence, we check for condition first, if there is already one of thread pass through, then rest of the reads don't need to go through the same subroutine.  There would be only one thread pass in this subroutine to creates the background thread to register the file.  Second, we can't do this in the constructor because we do not know the task attempt id until there is actually something to log, hence this was done at subAppend level.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated CHUKWA-267:
-----------------------------

    Status: Patch Available  (was: Open)

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716953#action_12716953 ] 

Hudson commented on CHUKWA-267:
-------------------------------

Integrated in Chukwa-trunk #45 (See [http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/45/])
    

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267-2.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Cheng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714229#action_12714229 ] 

Cheng commented on CHUKWA-267:
------------------------------

Suppose two threads reach the point of "synchronized (chukwaLock)" at the same time. After one thread quits from the sync block, another thread will take turn. It means the code inside the sync block will be executed twice. It means the file will be added more than one time; ClientFinalizer will be created more than one time, etc.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated CHUKWA-267:
-----------------------------

    Attachment: CHUKWA-267-1.patch

Move code block into if(chukwaClient==null) { } to ensure there is only one thread adding the stream to the Chukwa Agent.  Removed super.subAppend();  Thanks for the good catches. :)

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang reassigned CHUKWA-267:
--------------------------------

    Assignee: Eric Yang

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Jerome Boulon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714520#action_12714520 ] 

Jerome Boulon commented on CHUKWA-267:
--------------------------------------

Eric, this fix this appender but does not fix ChukwaDailyRollingFileAppender.
So instead of duplicating code and propagate errors or code could you create a singleton class that will be responsible for the registration with our agent.
This should be a singleton class with only a static access method and a private constructor. That way we can ensure that the code is only at one place and we don;t have to worry about fixing the same code in several classes.

Also, the same thing could be apply to the way we are writing a log4j event. ChukwaDailyRollingFileAppender is able to write exceptions, I'm not sure if yours is doing that. So could you write an helper class that will be reused cross Chukwa-appender that will do the correct escaping for both standard log4j event and the ones that contain some exception.

Thanks.



> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CHUKWA-267) Collect shuffling information from userlogs/syslog

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated CHUKWA-267:
-----------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I just committed this on trunk, thanks Ari, Cheng, and Jerome.

> Collect shuffling information from userlogs/syslog
> --------------------------------------------------
>
>                 Key: CHUKWA-267
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-267
>             Project: Hadoop Chukwa
>          Issue Type: New Feature
>          Components: data collection
>    Affects Versions: 0.2.0
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.1.2, 0.2.0
>
>         Attachments: CHUKWA-267-1.patch, CHUKWA-267-2.patch, CHUKWA-267.patch
>
>
> Hadoop uses a customized version of log4j appender (org.apache.hadoop.mapred.TaskLogAppender) for tasks.  Shuffling information is written to userlogs/syslog by TaskLogAppender.  For chukwa to collect shuffling information, we need to write a new TaskLogAppender to do this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.