You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Jerome Boulon (JIRA)" <ji...@apache.org> on 2009/04/10 21:40:14 UTC

[jira] Created: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

ChunkImpl requires ChukwaAgent class
------------------------------------

                 Key: CHUKWA-119
                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
             Project: Hadoop Chukwa
          Issue Type: Bug
            Reporter: Jerome Boulon


If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
// code
ChunkImpl() {
    this.tags = ChukwaAgent.getTags();
  }

// Stacktrace
Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)


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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon commented on CHUKWA-119:
--------------------------------------

+1 That's will be a good idea. reverse the link, add a static method setTag on ChunkImpl. Agent will call setTag



> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang updated CHUKWA-119:
-----------------------------

    Attachment: CHUKWA-119.patch

Implemented setTags in adaptors, and remove ChukwaAgent from Chunk Implementation class.

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang updated CHUKWA-119:
-----------------------------

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

I just committed this, thanks Jerome.

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119-3.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon updated CHUKWA-119:
---------------------------------

    Assignee: Jerome Boulon  (was: Eric Yang)
      Status: Patch Available  (was: Open)

- Change Chunk interface, change the setTag method to addTag
- ChunkImpl.getBlankChunk() return a real blank chunk
- Chunks are initialized with default tags: dataFactory.getDefaultTags()
- ChukwaAgent set default tags: 

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang commented on CHUKWA-119:
----------------------------------

+1 on setTag in ChunkImpl.

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon updated CHUKWA-119:
---------------------------------

    Attachment: CHUKWA-119-2.patch

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Eric Yang
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Cheng commented on CHUKWA-119:
------------------------------

Jerome, I applied your patch to my work copy but got error below when I run the collector.

java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.DataFactory
        at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:34)
        at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:230)
        at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)
        at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.doPost(ServletCollector.java:180)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon commented on CHUKWA-119:
--------------------------------------

My fault, dataFactory initialized the InMemoryQueue ...

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Cheng commented on CHUKWA-119:
------------------------------

+1 tested. looks good.

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119-3.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon updated CHUKWA-119:
---------------------------------

    Attachment: CHUKWA-119.patch

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Eric Yang
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Assigned: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon reassigned CHUKWA-119:
------------------------------------

    Assignee: Jerome Boulon

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon updated CHUKWA-119:
---------------------------------

    Attachment:     (was: CHUKWA-119.patch)

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Eric Yang
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang updated CHUKWA-119:
-----------------------------

        Fix Version/s: 0.1.2
    Affects Version/s: 0.1.2

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

-- 
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-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon edited comment on CHUKWA-119 at 4/14/09 12:14 AM:
----------------------------------------------------------------

+1 on using a static Tag. That will be a good idea. reverse the link, add a static method setTag on ChunkImpl. Agent will call setTag
I don't see why we should build yet another metrics framework.


      was (Author: jboulon):
    +1 That's will be a good idea. reverse the link, add a static method setTag on ChunkImpl. Agent will call setTag


  
> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang commented on CHUKWA-119:
----------------------------------

The source of the problem is caused by the new agentMetrics.  It prevents ChukwaAgent from initialize properly in Collector's vm.  We should use hadoop MetricsContext to calculate chukwa metrics.  It is better to send the stats as chucks since it's light weight and reuse our own code.

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon commented on CHUKWA-119:
--------------------------------------

-1 on the patch: CHUKWA-119.patch.
Instead of doing  "c.setTags(ChukwaAgent.getTags());" all over the place, add a static block inside the agent that will set the correct tag once.



> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Eric Yang
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Commented: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Ari Rabkin commented on CHUKWA-119:
-----------------------------------

Hrm.  I think the right fix is to restructure the code. Suppose we have some static "tags" variable in ChunkImpl, and have ChukwaAgent set it.  That way, we avoid any dependency of ChunkImpl on ChukwaAgent.

Thoughts?

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang updated CHUKWA-119:
-----------------------------

    Component/s: data collection

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon updated CHUKWA-119:
---------------------------------

    Priority: Blocker  (was: Major)

Mark as blocker since this will activate ChukwaAgent metrics

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>            Reporter: Jerome Boulon
>            Priority: Blocker
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Updated: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Jerome Boulon updated CHUKWA-119:
---------------------------------

    Attachment: CHUKWA-119-3.patch

create the in memory queue on demand.

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119-2.patch, CHUKWA-119-3.patch, CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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


[jira] Assigned: (CHUKWA-119) ChunkImpl requires ChukwaAgent class

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

Eric Yang reassigned CHUKWA-119:
--------------------------------

    Assignee: Eric Yang  (was: Jerome Boulon)

> ChunkImpl requires ChukwaAgent class
> ------------------------------------
>
>                 Key: CHUKWA-119
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-119
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.1.2
>            Reporter: Jerome Boulon
>            Assignee: Eric Yang
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: CHUKWA-119.patch
>
>
> If ChukwaAgent class is not available on the collector side, the collector is unable to read a chunk.
> // code
> ChunkImpl() {
>     this.tags = ChukwaAgent.getTags();
>   }
> // Stacktrace
> Java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
> 	at org.apache.hadoop.chukwa.ChunkImpl.<init>(ChunkImpl.java:46)
> 	at org.apache.hadoop.chukwa.ChunkImpl.read(ChunkImpl.java:229)
> 	at org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector.accept(ServletCollector.java:140)

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