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/04/11 22:30:15 UTC

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

    [ 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.