Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1781

Atlas UI cannot show lineage pic when inputs and outputs of lineage are the same entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7-incubating, 0.8-incubating, 0.7.1-incubating, 1.0.0, trunk
    • 1.0.0, 0.8.3
    • atlas-webui

    Description

      I was working with the lineage for hbase, when I added a column family in a hbase table, I want to create a lineage for the table to show there is a change within the table schema, yet when I create a process using the atlas api, I found that the process entity is successfully created, but the lineage is not shown on the atlas web page.

      Steps to Reproduce this issue is:

      1. build up an entity extends the DataSet Type

      2. build up a lineage Process

      3. set the process input and output to the same entity

      The code is like:

      Referenceable table1 = atlasClient.getEntity(HBaseDataTypes.HBASE_TABLE_TYPE_NAME, AtlasClient.REFERENCEABLE_ATTRIBUTE_NAME, input_table_name);

      Referenceable table2 = atlasClient.getEntity(HBaseDataTypes.HBASE_TABLE_TYPE_NAME, AtlasClient.REFERENCEABLE_ATTRIBUTE_NAME, output_table_name);

      HBaseProcess process = new HBaseProcess("process");

      process.setInput(table1.getId());

      process.setoutput(table2.getId());

      here I set the input_table_name and output_table_name the same string name, when I set them different values, the lineage pic can be shown for table1 and table2 successfully

      Screenshots are:
      1) The lineage pic keep loading on the atlas UI
      2) The error log reported by the browser console
      3) The lineage pic showed successfully when set the inputs and outputs of the lineage to different entities.

      Attachments

        1. 0001-fix-not-working-with-more-than-2-nodes.patch
          2 kB
          Xinzhi,Luo
        2. after_test-wrong_op.png
          16 kB
          Keval Bhatt
        3. browser_error.png
          59 kB
          qinglin,xia
        4. expected.png
          16 kB
          Keval Bhatt
        5. fixed.png
          26 kB
          Xinzhi,Luo
        6. Linage fix not working with more than 2 nodes with ATLAS-1781.png
          85 kB
          Xinzhi,Luo
        7. Lineage_Create_Successfully_when_inputs_outputs_different.png
          8 kB
          qinglin,xia
        8. Lineage_keep_loading.png
          4 kB
          qinglin,xia
        9. pic1.png
          10 kB
          Xinzhi,Luo
        10. pic2.png
          16 kB
          Xinzhi,Luo
        11. Process_Type_Not_Blue.png
          30 kB
          qinglin,xia
        12. Starting_point_is_Impact_than_icon&arrow_colour_is_wrong(KEVAL_2_review).jpg
          17 kB
          Keval Bhatt

        Issue Links

          Activity

            People

              Xinzhi,Luo Xinzhi,Luo
              xiaqinglin qinglin,xia
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: