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

introduce entity prefix for return and sort order



    • Reviewed


      While looking into YARN-5585, we have come across the need to provide a sort order different than the current entity id order. The current entity id order returns entities strictly in the lexicographical order, and as such it returns the earliest entities first. This may not be the most natural return order. A more natural return/sort order would be from the most recent entities.

      To solve this, we would like to add what we call the "entity prefix" in the row key for the entity table. It is a number (long) that can be easily provided by the client on write. In the row key, it would be added before the entity id itself.

      The entity prefix would be considered mandatory. On all writes (including updates) the correct entity prefix should be set by the client so that the correct row key is used. The entity prefix needs to be unique only within the scope of the application and the entity type.

      For queries that return a list of entities, the prefix values will be returned along with the entity id's. Queries that specify the prefix and the id should be returned quickly using the row key. If the query omits the prefix but specifies the id (query by id), the query may be less efficient.

      This JIRA should add the entity prefix to the entity API and add its handling to the schema and the write path. The read path will be addressed in YARN-5585.


        1. YARN-5715-YARN-5355.01.patch
          35 kB
          Sangjin Lee
        2. YARN-5715-YARN-5355.02.patch
          14 kB
          Rohith Sharma K S
        3. YARN-5715-YARN-5355.03.patch
          19 kB
          Rohith Sharma K S
        4. YARN-5715-YARN-5355.04.patch
          15 kB
          Rohith Sharma K S
        5. YARN-5715-YARN-5355.05.patch
          16 kB
          Rohith Sharma K S
        6. YARN-5715-YARN-5355.06.patch
          16 kB
          Rohith Sharma K S

        Issue Links



              rohithsharma Rohith Sharma K S
              sjlee0 Sangjin Lee
              0 Vote for this issue
              9 Start watching this issue