You can create, view, edit, and delete jobs on the Loader page.
This section applies to versions earlier than MRS 3.x.
You have accessed the Loader page. For details, see Loader Page.
After you select a link of a type, data is obtained from the specified source and saved to the destination.
If no available link exists, click Add a new link.
For details, see Source Link Configurations of Loader Jobs.
For details, see Destination Link Configurations of Loader Jobs.
Database links include:
If you set To link to a database link, you need to configure a mapping between service data and a field in the database table.
Field Mapping specifies a mapping between each column of user data and a field in the database table.
Parameter |
Description |
---|---|
Column Num |
Field sequence of service data |
Sample |
First row of sample values of service data |
Column Family |
When To link is hbase-connector, you can select a column family for storing data. |
Destination Field |
Field for storing data |
Type |
Type of the field selected by the user |
Row Key |
When To link is hbase-connector, you need to select Destination Field as a row key. |
If the value of From is a connector of a file type, for example, SFTP, FTP, OBS, and HDFS files, the value of Field Mapping is the first row of data in the file. Ensure that the first row of data is complete. Otherwise, the Loader job will not extract columns that are not mapped.
Parameter |
Description |
---|---|
Extractors |
Number of Map tasks |
Loaders |
Number of Reduce tasks This parameter is displayed only when the destination field is HBase or Hive. |
Max. Error Records in a Single Shard |
Error record threshold. If the number of error records of a single Map task exceeds the threshold, the task automatically stops and the obtained data is not returned. NOTE:
Data is read and written in batches for MYSQL and MPPDB of generic-jdbc-connector by default. Errors are recorded once at most for each batch of data. |
Dirty Data Directory |
Specifies the directory for saving dirty data. If you leave this parameter blank, dirty data will not be saved. |
Basic job operations in the navigation bar on the left are Run, Copy, Delete, Disable, History Record, and Show Job JSON Definition.
You can also select one or more jobs and click Delete Job in the upper right corner of the job list.
If the state of a Loader job is Running, the job fails to be deleted.