Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11588

Output Avro format in the offline editlog viewer



    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:


      We found that it is handy to import the edit logs into query engines (e.g., Hive / Presto) to understand the usages of the cluster. Some examples include:

      • The size of the data and the number of files that are written into a directory
      • The distribution of the operations, for different directories.
      • The number of files that are created by a user.

      The answers to the above questions give insights on the usages of the clusters and have significant values on capacity planning.

      Importing the edit log into query engines simplifies the tasks of answering these questions, and they can be answered efficiently.

      While the Offline Editlog Viewer (OEV) supports outputting editlogs in XML formats, we found that it is time-consuming to transforming the XML format to formats that query engines recognize, because the generating the editlogs in XML formats and transforming them into formats that the query engine understands takes significant amount of time. In our environment it takes minutes to prepare a 100MB editlog file into a corresponding Parquet file.

      This jira proposes to extend the OEV to output Avro files to make this process efficient. As an internal tool, the Avro output format has certain pre-defined schemas but it does not have the constraint of maintaining backward compatibility of the output, which is similar to the XML output format.




            • Assignee:
              wheat9 Haohui Mai
              wheat9 Haohui Mai
            • Votes:
              0 Vote for this issue
              8 Start watching this issue


              • Created: