Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16612

PerfLogger is configurable, but not extensible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

                result = (PerfLogger) ReflectionUtils.newInstance(conf.getClassByName(
                  conf.getVar(HiveConf.ConfVars.HIVE_PERF_LOGGER)), conf);
      

      The PerfLogger instance is configurable via hive.exec.perf.logger (HIVE-11891) but the requirement to extend from PerfLogger cannot be met since HIVE-11149 as the ctor is private. Also useful methods in PerfLogger are also private. I tried to extend PerfLogger for my needs and realized that, as is, the configurability is not usable. At the very least the PerfLogger should make all private members protected, better the requirement should be an interface not a class.

      Attachments

        1. HIVE-16612.02.patch
          132 kB
          Remus Rusanu
        2. HIVE-16612.01.patch
          131 kB
          Remus Rusanu

        Activity

          People

            rusanu Remus Rusanu
            rusanu Remus Rusanu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: