name: Export HDFS API route: /ExportHDFSAPI menu: Documentation submenu: Import/Export

import themen from ‘theme/styles/styled-colors’; import * as theme from ‘react-syntax-highlighter/dist/esm/styles/hljs’; import SyntaxHighlighter from ‘react-syntax-highlighter’;

Export & Import APIs for HDFS Path

Introduction

The general approach for using the Import-Export APIs for HDFS Paths remain the same. There are minor variations caused how HDFS paths are handled within Atlas.

Unlike HIVE entities, HDFS entities within Atlas are created manually using the Create Entity link within the Atlas Web UI.

Also, HDFS paths tend to be hierarchical, in the sense that users tend to model the same HDFS storage structure within Atlas.

Sample HDFS Setup

HDFS PathAtlas Entity
/apps/warehouse/finance**Entity type: **hdfs_path
**Name: **Finance
**QualifiedName: **FinanceAll
/apps/warehouse/finance/accounts-receivable**Entity type: **hdfs_path
**Name: **FinanceReceivable
**QualifiedName: **FinanceReceivable
**Path: **/apps/warehouse/finance
/apps/warehouse/finance/accounts-payable**Entity type: **hdfs_path
**Name: **Finance-Payable
**QualifiedName: **FinancePayable
**Path: **/apps/warehouse/finance/accounts-payable
/apps/warehouse/finance/billing**Entity type: **hdfs_path
**Name: **FinanceBilling
**QualifiedName: **FinanceBilling
**Path: **/apps/warehouse/finance/billing

Export API Using matchType

To export entities that represent the HDFS path, use the Export API using the matchType option. Details can be found here.

Example Using CURL Calls

Below are sample CURL calls perform an export operation on the Sample HDFS Setup shown above.

Automatic Creation of HDFS entities

Given that HDFS entity creation is a manual process. The Export API offers a mechanism for the creation of requested HDFS entities.