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

Add Public IOStatistics API

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1
    • fs, fs/s3

    Description

      Applications like to collect the statistics which specific operations take, by collecting exactly those operations done during the execution of FS API calls by their individual worker threads, and returning these to their job driver

      • S3A has a statistics API for some streams, but it's a non-standard one; Impala &c can't use it
      • FileSystem storage statistics are public, but as they aren't cross-thread, they don't aggregate properly

      Proposed

      1. A new IOStatistics interface to serve up statistics
      2. S3A to implement
      3. other stores to follow
      4. Pass-through from the usual wrapper classes (FS data input/output streams)

      It's hard to think about how best to offer an API for operation context stats, and how to actually implement.

      ThreadLocal isn't enough because the helper threads need to update on the thread local value of the instigator

      My Initial PoC doesn't address that issue, but it shows what I'm thinking of

      Attachments

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 35h 40m
                  35h 40m