Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15339

Support additional key/value propereties in JMX bean registration

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: common
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      org.apache.hadoop.metrics2.util.MBeans.register is a utility function to register objects to the JMX registry with a given name prefix and name.

      JMX supports any additional key value pairs which could be part the the address of the jmx bean. For example: java.lang:type=MemoryManager,name=CodeCacheManager

      Using this method we can query a group of mbeans, for example we can add the same tag to similar mbeans from namenode and datanode.

      This patch adds a small modification to support custom key value pairs and also introduce a new unit test for MBeans utility which was missing until now.

        Attachments

        1. HADOOP-15339-branch-3.1.004.patch
          9 kB
          Elek, Marton
        2. HADOOP-15339.003.patch
          9 kB
          Elek, Marton
        3. HADOOP-15339.002.patch
          9 kB
          Elek, Marton
        4. HADOOP-15339.001.patch
          8 kB
          Elek, Marton

          Activity

            People

            • Assignee:
              elek Elek, Marton
              Reporter:
              elek Elek, Marton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: