Add a New Pipeline
The number of pipelines that you must create is strongly linked to the chosen
Data Format and their content.
- For CSV and Parquet source files, the
pipeline can target only one data model class in Destination.
- In JSON files, you can target as many classes as you want as each
item specifies its target class.
Before you begin: You have created an index unit.
-
From the
Home page, click
Create pipeline.
-
Enter a Pipeline name.
-
For Pipeline type, select
Index Tabular Data.
-
Click Create.
The
General tab opens. Recommendation:
Click
Save after any editing operation.
What's NextYou can now configure the source of your pipeline.
Configure the Source
Once the pipeline is created, configure the source that is the connection to the
storage on which Data Factory Studio must fetch source files.
The storage source can be an
External S3 Bucket or an internal
Object Storage Bucket.
-
Select the
Source tab.
- Configure the Storage parameters.
- Optional: If lineage with Dataset Governance is activated, you see a Source Lineage section on the page. In that case, you must select a catalog previously defined in Dataset Governance from Source Catalog.
-
Configure the Scheduling that is the refresh frequency of the
source to fetch.
You can specify intervals, like every 10 minutes, every hour, every day, etc.
You can define your own custom source scheduling using a Quartz cron
custom expression. For example:
"0 0 13 * * ?" indicates that you want to schedule the processor
to run at 1:00 PM every day.
"0 20 14 ? * MON-FRI" indicates that you want to schedule the
processor to run at 2:20 PM from Monday to Friday.
"0 15 10 ? * 6L 2011-2017" indicates that you want to schedule
the processor to run at 10:15 AM, on the last Friday of every month, between 2011
and 2017.
For more information on Quartz format, see https://www.quartz-scheduler.org/documentation/.
-
In Prioritization, define the ingestion order of data
fetched in a same scheduled batch.
This is especially important:
- For the initial crawl.
- When the pipeline restarts from scratch.
- If you add more than one file in your storage between 2 pipeline
schedules.
-
Select a Data format: CSV,
JSON, or Parquet.
Notes:
- Whatever the chosen data format, UTF-8 is the only
supported character set.
- CSV files must contain headers matching exactly the target storage
Properties specified in the
Destination tab.
- JSON and Parquet files must contain attributes matching exactly the target
storage Properties specified in the
Destination tab.
-
Click
Save.
What's NextYou can now optionally configure some processing on your data. If it is not
required, you can configure the pipeline destination.
Configure the Processing
Advanced users, familiar with Semantic Graph Index data queries can define a MAP expression in the
Processing tab.
The input expression must be a record that holds the values from your data
source. It can be a tuple or a JSON expression. For more information, see Appendix - About Processing.
-
Select the
Processing tab.
-
For Expression input type, select Tuple
(recommended) or Json.
-
In the Processing expression field, enter your processing
expression as a tuple or a JSON object accordingly.
For more information, see Appendix - About Processing.
Configure the Destination
Define in which data model class, the ingestion pipeline must push fetched data.
-
Select the
Destination tab.
-
From Index unit, select the
Index Unit where you want to push data.
-
For Cardinality, select:
- Single target class to generate items in a single target
class.
- Multiple target classes to generate items in multiple
target classes.
If you want your pipeline to generate
AddOrReplaceItem events in multiple classes of your target
storage, all input source tabular files must contain a column named
class. For each row, this column must indicate the full qualified
name of the target class (packageName.className) in which the
pipeline must send the event. For example, core.Item.
-
If you selected Single target class, in
Class, select the name of the class that must store indexed
data. For example,
car.
-
Optional: If your data model contains a property of type
List, scroll down to the Index
Properties table, and specify a separator in the Multivalued
separator column.
Note:
The Multivalued separator must be different from the
Value separator defined in the
Source tab.
-
For Strategy, select how the pipeline interacts with its
output target storage to update files.
For more information, see Update Strategies for the Target Storage.
-
For Null strings support, select:
- Keep null string values: This is the default and
recommended behavior.
- Replace null strings by empty strings: This is the legacy
behavior kept for all existing pipelines. Choose this option for specific use cases
only.
-
Click
Save.
What's NextYou can now run the pipeline configuration.
Run the Pipeline Configuration
Once the configuration is complete, you can apply it to start indexing documents.
-
Select the
Activity tab.
The running status of the indexing displays at the top of the
screen.
-
To start the pipeline indexing, click
Start.
You can stop the indexing at any time and restart it when ready.
Note:
In addition, for the
Index Tabular Data and the
Index Event Data pipelines, you can stop the pipeline and
click Resume to restart the indexing from where it stopped.
Delete a Pipeline
Deleting a pipeline is an action that cannot be undone. Proceed with caution.
-
In the
General tab, go to the bottom of the
Action section.
-
Click
Delete.
This action stops data ingestion and deletes the pipeline.
|