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 "Shiyou xin (Jira)" <ji...@apache.org> on 2020/11/04 14:03:00 UTC

[jira] [Created] (HADOOP-17357) hadoop component start with failed to init Ganglia31

Shiyou xin created HADOOP-17357:
-----------------------------------

             Summary: hadoop component start with failed to init Ganglia31
                 Key: HADOOP-17357
                 URL: https://issues.apache.org/jira/browse/HADOOP-17357
             Project: Hadoop Common
          Issue Type: Bug
          Components: metrics
         Environment: **env version: Hadoop3.2.1
            Reporter: Shiyou xin
         Attachments: HADOOP-13660-fix.patch

When start namenode, datanode or releated components, there exists an Warning :

Error creating sink 'ganglia'
org.apache.hadoop.metrics2.impl.MetricsConfigException: Error creating plugin: org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31

if there exists configuration, like : *.sink.ganglia.dmax=jvm.metrics.threadsBlocked=70,jvm.metrics.memHeapUsedM=40。

 

Maybe, because we init first and then configure list delimiter handler。So, two ways to deal with this:

1.  set list delimiter handler first then init parent class: (org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30)
 conf.setListDelimiterHandler(new DefaultListDelimiterHandler(',')); conf.setListDelimiterHandler(new DefaultListDelimiterHandler(','));    super.init(conf);

2. modify related reference jars:  commons-configuration2:2.2.1
org.apache.commons.configuration2.AbstractConfiguration, set default delimiter handler replase DisabledListDelimiterHandler.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org