Dumping Data to OBS
Dumping the JSON, BLOB, and CSV Data to the Text Data
| Parameter | Description | Value |
|---|---|---|
| Task Name | Name of the dump task. The names of dump tasks created for the same stream must be unique. A dump task name is 1 to 64 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed. | - |
| Dump Bucket | Name of the OBS bucket used to store data from the DIS stream. The bucket name is created when you create a bucket in OBS. | - |
| File Directory | Directory created in OBS to store files from the DIS stream. This directory name is 0 to 50 characters long. By default, this parameter is left unspecified. | - |
| Time Directory Format | Data will be saved according to the time format in the file directory of the OBS bucket. For example, if the time directory is accurate to day, the save path will be in the format of bucket name/file directory/year/month/day. Possible values are as follows:
You can only select but not enter a value in this field. | - |
| Record Delimiter | Delimiter used to separate different dump records. Possible values are as follows:
You can only select but not enter a value in this field. | - |
| Offset |
| Latest |
| Dump Interval (s) | Interval at which data from the DIS stream will be imported into dump destination, such as OBS, MRS, DLI, DWS, and CloudTable. If no data was pushed to the DIS stream during the time specified here, the dump file will not be generated. Value range: 30s to 900s Unit: second Default value: 300s | - |
Dumping the JSON Data to the CSV Data
| Parameter | Description | Value |
|---|---|---|
| Task Name | Name of the dump task. The names of dump tasks created for the same stream must be unique. A dump task name is 1 to 64 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed. | - |
| Dump Bucket | Name of the OBS bucket used to store data from the DIS stream. The bucket name is created when you create a bucket in OBS. | - |
| File Directory | Directory created in OBS to store files from the DIS stream. This directory name is 0 to 50 characters long. By default, this parameter is left unspecified. | - |
| Time Directory Format | Data will be saved according to the time format in the file directory of the OBS bucket. For example, if the time directory is accurate to day, the save path will be in the format of bucket name/file directory/year/month/day. Possible values are as follows:
You can only select but not enter a value in this field. | - |
| Offset |
| Latest |
| Dump Interval (s) | User-defined interval at which data is imported from the current DIS stream into the target place. If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range: 30s to 900s Unit: second Default value: 300s | - |
Dumping the JSON and CSV Data to the Parquet Data
| Parameter | Description | Value |
|---|---|---|
| Source Data Schema | JSON or CSV data example, used to describe the JSON or CSV data format. DIS can generate an Avro schema based on the JSON or CSV data sample and convert the uploaded JSON or CSV data to the Parquet format. | - |
| File Directory | Directory created in OBS to store files from the DIS stream. This directory name is 0 to 100 characters long. By default, this parameter is left unspecified. NOTE: When the source data type is JSON, EL and built-in functions are supported. |
Source data: {"name":"Andy","city":"","time":1556323141582} The dump file directory is configured as follows: dis/basePath/app_key_p=${name} The final directory structure is as follows: {$Bucket name}/dis/basePath/app_key_p=Andy
Source data: {"name":"Andy","city":"","time":1556323141582} The dump file directory is configured as follows: dis/basePath/date_p=toDate(${time}, "yyMMdd") The final directory structure is as follows: {$Bucket name}/dis-basePath/date_p=20190427 Supported built-in functions toDate(timestamp, format): Convert the time stamp to a specified time format. For example: toDate (1556323141582, 'yymmdd') |
| Custom Time Directory | You can click
|
Source data: { "id":"1", "date":"2018/10/16 11:00:05"} The configuration is as follows: Set the timestamp attribute name to date, data type to String, and timestamp format to yyyy/MM/dd HH:mm:ss based on the source data type of the data to be dumped. After the data is dumped successfully, the storage directory structure depends on the source data timestamp and the time directory format. In this example, the time directory format is accurate to day. Therefore, the final data storage directory is OBS bucket name/dump file directory/2018/10/16.
The configuration is as follows: Set the timestamp attribute name to detail.endTime, data type to String, and timestamp format to yyyy/MM/dd HH:mm:ss based on the source data type of the data to be dumped. After the data is dumped successfully, the storage directory structure depends on the source data timestamp and the time directory format. In this example, the time directory format is accurate to day. Therefore, the final data storage directory is OBS bucket name/dump file directory/2018/10/07.
Source data: a,2010-10-12 11:00:00,b,2011-10-12 11:00:10 The configuration is as follows: Select timestamp 2010-10-12 11:00:00 based on the source data to be dumped. After data is converted to the Parquet format, the corresponding attribute field name is field_1. When creating a dump task, set the timestamp attribute to field_1, data type to String, and timestamp format to yyyy/MM/dd HH:mm:ss. After the data is dumped successfully, the storage directory structure depends on the source data timestamp and the time directory format. In this example, the time directory format is accurate to day. Therefore, the final data storage directory is OBS bucket name/dump file directory/2010/10/12. |
| Source Data Timestamp |
|
Dumping the JSON and CSV Data to the CarbonData Data
| Parameter | Description | Value |
|---|---|---|
| Source Data Schema | JSON or CSV data sample, used to describe the JSON or CSV data format. DIS can generate an Avro schema based on the JSON or CSV data sample and convert the uploaded JSON or CSV data to the CarbonData format. | - |
| CarbonData Retrieval Attribute | Attribute of the carbon table, used to create a carbon writer. The following keys are supported:
| - |
Last Article: Creating a Dump Task
Next Article: Dumping Data to DLI


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.