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

Introduction of client statistics publishers possibility

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • Clients, Statistics
    • None

    Description

      The purpose of this change is to allow publication or storage of counters while the job is running.

      Introduced two new variables to hive-default.xml and HiveConf.java: "hive.client.stats.publishers" and "hive.client.stats.counters". First one specifies classes names, whose instances will be executed by HadoopJobExecHelper.java (similarly as hooks are) in its method progress(ExecDriverTaskHandle): MapRedStats. Second one specifies list of counters that any client stat publishers should publish or stored. Details regarding format of this list is up to a specific deployment (it is up to client stats publishers to parse it), yet it is required to use display names of counter groups and counters.

      Added interface ClientStatsPublishers in org.apache.hadoop.hive.ql.stats package, that must be implemented by all stats publishers.

      Added code to progress(ExecDriverTaskHandle): MapRedStats from HadoopJobExecHelper.java that puts counters' values to a Java map and then executes registered client stats publishers giving them that map and running job id. Added two new methods to HadoopJobExecHelper: extractAllCounterValues(Counters) and getClientStatsPublishers() that are used by code from previous sentence.

      Made cosmetic changes in two other classes

      Attachments

        1. HIVE-2446.1.patch
          9 kB
          Robert Surówka
        2. HIVE-2446.1.patch
          9 kB
          Robert Surówka
        3. HIVE-2446.2.patch
          8 kB
          Robert Surówka
        4. HIVE-2446.2.patch
          8 kB
          Robert Surówka
        5. HIVE-2446.3.patch
          2 kB
          Robert Surówka
        6. HIVE-2446.3.patch
          2 kB
          Robert Surówka

        Issue Links

          Activity

            People

              rsurowka Robert Surówka
              rsurowka Robert Surówka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified