You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2008/12/30 23:06:44 UTC

[jira] Created: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

System metrics does not output correctly for Redhat 5.1.
--------------------------------------------------------

                 Key: HADOOP-4959
                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
             Project: Hadoop Core
          Issue Type: Bug
          Components: contrib/chukwa
         Environment: Redhat EL 5.1, Java 6
            Reporter: Eric Yang
            Assignee: Eric Yang


Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.

>From Redhat EL 4.5:

008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
 0 users,  load average: 1.42, 4.47, 4.97^D
Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D

>From Redhat EL 5.1:

2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
 2 users,  load average: 1.14, 1.17, 1.07^D
Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D

Notice in 5.1, there is a % for st.  

The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang updated HADOOP-4959:
------------------------------

    Status: Patch Available  (was: Open)

Added lsb-release detection.

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang updated HADOOP-4959:
------------------------------

    Attachment: HADOOP-4959.patch

Fixed regular expression for matching top output.

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang updated HADOOP-4959:
------------------------------

    Status: Open  (was: Patch Available)

Wait for a update to systemDataLoader.sh.

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Commented: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Hudson commented on HADOOP-4959:
--------------------------------

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

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

-- 
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: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

eyang edited comment on HADOOP-4959 at 1/15/09 5:26 PM:
------------------------------------------------------------

New patch which includes lsb-release detection.

      was (Author: eyang):
    New patch which includes lsb-release dection.
  
> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Commented: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

Posted by "Doug MacEachern (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660598#action_12660598 ] 

Doug MacEachern commented on HADOOP-4959:
-----------------------------------------

We recently added a FLOSS License Exception (borrowed from mysql-connector-java-5.1.6/EXCEPTIONS-CONNECTOR-J) to sigar, see:
http://svn.hyperic.org/trunk/EXCEPTIONS?revision=3884&root=Hyperic+SIGAR&view=markup

The intent is to make the license Apache-friendly so sigar can be used in projects such as Hadoop.

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Commented: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang commented on HADOOP-4959:
-----------------------------------

ganglia metrics library and dstat were suggested for this purpose.  However, there are other type of problems, like precision lost in float in ganglia metrics library.  dstat is also GPLed.  Replacing system metrics measurements with a third party tool should be another bug on it's own.

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Commented: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang commented on HADOOP-4959:
-----------------------------------

The shell script calling should also be different:

In Redhat 5.1:
sar -q -r -n ALL
iostat -x -k 55 2

In Redhat 4.5:
sar -q -r -n FULL 55
iostat -x 55 2

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Commented: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Ari Rabkin commented on HADOOP-4959:
------------------------------------

The whole business of "use system utilities to collect statistics, and then parse the output" never sat well with me. It's going to be a pain to maintain, going forward, since it's not easy to test on N different versions of utilities. Perhaps worse, there are cases where the text parses fine, but the meaning has shifted.  I've seen this with regards cumulative-versus-instantaneous measurements from iostat and such.  

There's a library, Sigar [http://www.hyperic.com/products/sigar.html] that does this correctly.  Unfortunately, it's GPLed.  Is there an Apache-friendly equivalent that we could use instead?

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang updated HADOOP-4959:
------------------------------

    Attachment: HADOOP-4959.patch

New patch which includes lsb-release dection.

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Chris Douglas updated HADOOP-4959:
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.21.0
           Status: Resolved  (was: Patch Available)

I committed this. Thanks, Eric

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang updated HADOOP-4959:
------------------------------

    Release Note: 
What is new in HADOOP-4959:

Support parsing of top output for Redhat EL 5.1.
    Hadoop Flags: [Reviewed]
          Status: Patch Available  (was: Open)

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Updated: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Eric Yang updated HADOOP-4959:
------------------------------

    Attachment:     (was: HADOOP-4959.patch)

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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


[jira] Commented: (HADOOP-4959) System metrics does not output correctly for Redhat 5.1.

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

Ari Rabkin commented on HADOOP-4959:
------------------------------------

I forgot to say, before.  This patch is certainly helpful, even if it doesn't embody the ideal approach, going forward.

+1

> System metrics does not output correctly for Redhat 5.1.
> --------------------------------------------------------
>
>                 Key: HADOOP-4959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4959
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/chukwa
>         Environment: Redhat EL 5.1, Java 6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>         Attachments: HADOOP-4959.patch
>
>
> Top output is different between Redhat 4.5 and Redhat 5.1.  The demux parser needs to be updated to parse information correctly.
> From Redhat EL 4.5:
> 008-12-23 00:00:33,983 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up 291 days,  3:34,
>  0 users,  load average: 1.42, 4.47, 4.97^D
> Tasks: 184 total,   1 running, 183 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  6.9% us,  0.8% sy,  0.5% ni, 90.8% id,  0.9% wa,  0.0% hi,  0.2% si^D
> Mem:   3088508k total,  1364972k used,  1723536k free,    68008k buffers^D
> Swap: 16386160k total,   501196k used, 15884964k free,   406344k cached^D
> From Redhat EL 5.1:
> 2008-12-23 00:55:00,242 INFO org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 days, 22:07,
>  2 users,  load average: 1.14, 1.17, 1.07^D
> Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie^D
> Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st^D
> Mem:   8175232k total,  2027628k used,  6147604k free,   344052k buffers^D
> Swap: 25157664k total,        0k used, 25157664k free,  1248400k cached^D
> Notice in 5.1, there is a % for st.  
> The parser needs to be improved.

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