Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2928 YARN Timeline Service v.2: alpha 1
  3. YARN-5109

timestamps are stored unencoded causing parse errors

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When we store timestamps (for example as part of the row key or part of the column name for an event), the bytes are used as is without any encoding. If the byte value happens to contain a separator character we use (e.g. "!" or "="), it causes a parse failure when we read it.

      I came across this while looking into this error in the timeline reader:

      2016-05-17 21:28:38,643 WARN org.apache.hadoop.yarn.server.timelineservice.storage.common.TimelineStorageUtils: incorrectly formatted column name: it will be discarded
      

      I traced the data that was causing this, and the column name (for the event) was the following:

      i:e!YARN_RM_CONTAINER_CREATED=\x7F\xFF\xFE\xABDY=\x99=YARN_CONTAINER_ALLOCATED_HOST
      

      Note that the column name is supposed to be of the format (event id)=(timestamp)=(event info key). However, observe the timestamp portion:

      \x7F\xFF\xFE\xABDY=\x99
      

      The presence of the separator ("=") causes the parse error.

      Attachments

        1. YARN-5109-YARN-2928.003.patch
          164 kB
          Varun Saxena
        2. YARN-5109-YARN-2928.01.patch
          30 kB
          Varun Saxena
        3. YARN-5109-YARN-2928.02.patch
          65 kB
          Joep Rottinghuis
        4. YARN-5109-YARN-2928.03.patch
          164 kB
          Varun Saxena
        5. YARN-5109-YARN-2928.04.patch
          169 kB
          Varun Saxena
        6. YARN-5109-YARN-2928.05.patch
          169 kB
          Varun Saxena
        7. YARN-5109-YARN-2928.06.patch
          169 kB
          Varun Saxena
        8. YARN-5109-YARN-2928.07.patch
          189 kB
          Varun Saxena
        9. YARN-5109-YARN-2928.08.patch
          194 kB
          Varun Saxena

        Issue Links

          Activity

            People

              varun_saxena Varun Saxena
              sjlee0 Sangjin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: