Data Governance
Also available as:
PDF
loading table of contents...

Chapter 3. Searching and Viewing Entities

Using Basic and Advanced Search

Using Basic Search

You can search for entities using three basic search modes:

  • Search by Type – search based on a selected Entity type.

  • Search by Tag – search based on a selected Atlas tag.

  • Search by Query – full-text search.

  1. To search for entities, click SEARCH on the Atlas web UI. Select an entity type, an Atlas tag, or enter a text string, then click Search to display a list of the entities associated with the specified search criteria.

    • In the example below, we searched for the Table entity type.

    • You can also combine search criteria. In the example below, we combined Type and full-text search to find Table entities whose name contains the text string "sales_fact".

    • You can use the attribute filters to further refine search criteria. Click an Attribute Filter symbol to display the Attribute Filter pop-up.

      Use the selection boxes on the Attribute Filter pop-up to specify an attribute filter. The attributes listed reflect the entity type. In the following example, we set an attribute filter to return entities with an Owner attribute of "Joe".

      • Click Add filter to add more attribute filters.

      • Click Delete to remove an attribute filter.

      • Click Apply to temporarily save the attribute filter to the current search without applying it to the search results. Click Search to apply the attribute filter to the search results.

  2. Click Columns to control which columns are displayed in the list of search results.

  3. To view detailed information about an entity, click the entity in the search results list. In the example below, we selected the "sales_fact" table from the list of search results.

  4. Click Clear to clear the search settings.

Using Advanced Search

To switch to Advanced search mode, slide the green toggle button from Basic to Advanced. You can search for entities using two advanced search modes:

  • Search by Type – search based on a selected Entity type.

  • Search by Query – search using an Apache Atlas DSL query. Atlas DSL (Domain-Specific Language) is a SQL-like query language that enables you to search metadata using complex queries.

  1. To search for entities, select an entity type or enter an Atlas DSL search query, then click Search to display a list of the entities associated with the specified search criteria.

    You can also combine search criteria. In the example below, we searched for Table entity types named "sales_fact".

    To display more information about Atlas DSL queries, click the question mark symbol next to the Advanced label above the search boxes.

    The Advanced Search Queries lists example queries, along with a link to the Apache Atlas DSL query documentation:

  2. Click Clear to clear the search settings.

Saving Searches

You can use the Favorite Searches box to save both Basic and Advanced Atlas searches.

  1. To demonstrate saved searches, let's start with a Basic search for the Table entity type.

  2. To save this search, click Save As under Favorite Searches.

  3. On the Create Your Favorite Search pop-up, type a name for the search in the Name box, then click Create. In this example, the search name is "Table".

  4. The saved search appears in the Favorite Searches box.

  5. To run a saved search:

    • Click the search name in the Favorite Searches list, then click Search.

      -or-

    • Click the ellipsis symbol () for the saved search, then click Search in the drop-down menu.

    [Note]Note

    You can also use the ellipsis symbol drop-down menu to rename or delete a saved search.

  6. Now let's save this search under a new name, then change the search criteria and save the new search. To save a search under a new name, click the search, then click Save As.

  7. On the Create Your Favorite Search pop-up, type a name for the new search in the Name box, then click Create. In this example, the new search name is "sales_fact".

  8. The new search appears in the Favorite Searches box.

  9. Next we add a full-text search string to find Table entities whose name contains the text string "sales_fact", then click Search to update the search results. To save this new set of search criteria to the "sales_fact" search, click Save under Favorite Searches.

    [Note]Note

    To modify a saved search, click the search name in the Favorite Searches list, update the search criteria, then click Save to save the new search settings.

Viewing Entity Data Lineage & Impact

  1. Data lineage and impact is displayed when you select an entity. In the following example, we ran a Type search for Table, and then selected the "sales_fact" entity. Data lineage and impact is displayed graphically, with each icon representing an action. You can use the + and - buttons to zoom in and out, and you can also click and drag to move the image.

  2. Moving the cursor over an icon displays a pop-up with more information about the action that was performed.

Viewing Entity Details

When you select an entity, detailed information about the entity is displayed under DETAILS.

  • The Properties tab displays all of the entity properties.

  • Click the Tags tab to display the tags associated with the entity. In this case, the "fact" tag has been associated with the "sales_fact" table.

  • The Audits tab provides a complete audit trail of all events in the entity history. You can use the Detail button next to each action to view more details about the event.

  • The Schema tab shows schema information, in this case the columns for the table. We can also see that a PII tag has been associated with the "customer_id" column.

Manually Creating Entities

Currently there is no Atlas hook for HBase, HDFS, or Kafka. For these components, you must manually create entities in Atlas. You can then associate tags with these entities and control access using Ranger tag-based policies.

  1. On the Atlas web UI Search page, click the create new entity link at the top of the page.

  2. On the Create Entity pop-up, select an entity type.

  3. Enter the required information for the new entity. Click All to display both required and non-required information. Click Create to create the new entity.

  4. The entity is created and returned in search results for the applicable entity type. You can now associate tags with the new entity and control access to the entity with Ranger tag-based policies.