private boolean initMetricsReporter() {

    List<String> metricsReporterNames = Lists.newArrayList(Splitter.on(",").trimResults().
        omitEmptyStrings().split(MetastoreConf.getVar(conf, MetastoreConf.ConfVars.HIVE_METRICS_REPORTER)));
    if (metricsReporterNames.isEmpty()) {
      return false;
    }

    MetricsReporting reporter;
    for (String metricsReportingName : metricsReporterNames) {
      try {
        reporter = MetricsReporting.valueOf(metricsReportingName.trim().toUpperCase());
      } catch (IllegalArgumentException e) {
        LOGGER.error("Invalid reporter name " + metricsReportingName, e);
        throw e;
      }
      CodahaleReporter codahaleReporter = null;
      switch (reporter) {
      case CONSOLE:
        codahaleReporter = new ConsoleMetricsReporter(metricRegistry, conf);
        break;
      case JMX:
        codahaleReporter = new JmxMetricsReporter(metricRegistry, conf);
        break;
      case JSON_FILE:
        codahaleReporter = new JsonFileMetricsReporter(metricRegistry, conf);
        break;
      case HADOOP2:
        codahaleReporter = new Metrics2Reporter(metricRegistry, conf);
        break;
      default:
        LOGGER.warn("Unhandled reporter " + reporter + " provided.");
      }
      if (codahaleReporter != null) {
        codahaleReporter.start();
        reporters.add(codahaleReporter);
      }
    }
    return true;
  }
Initializes reporting using HIVE_METRICS+REPORTER.
@return whether initialization was successful or not
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/metrics/metrics2/CodahaleMetrics.java