Skip to content

Commit

Permalink
add header and fix style error in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoliversun committed Jul 11, 2024
1 parent 392129c commit ab1f756
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 25 deletions.
19 changes: 10 additions & 9 deletions docs/docs/en/guide/task/aliyun-adb-spark.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

- Please refer to [DolphinScheduler Task Parameters Appendix](appendix.md) `Default Task Parameters` section for default parameters.

| **Parameters** | **Description** |
| **Parameters** | **Description** |
|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Datasource types | The type of datasource the task uses, should be `ADBSPARK`. |
| Datasource instances | The instance of `ADBSPARK` datasource. |
Expand All @@ -43,18 +43,19 @@

#### Batch Type Application

| **Parameters** | **Example Values / Operations** |
|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Aliyun ADB Cluster ID | amv-example |
| Aliyun ADB Resource Group | spark |
| Aliyun ADB App Type | Batch |
| Aliyun ADB Spark Data |{ <br> &nbsp; &nbsp; &nbsp; &nbsp; "comments":&nbsp; [ <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "--&nbsp; Here&nbsp; is&nbsp; just&nbsp; an&nbsp; example&nbsp; of&nbsp; SparkPi.&nbsp; Modify&nbsp; the&nbsp; content&nbsp; and&nbsp; run&nbsp; your&nbsp; spark&nbsp; program." <br> &nbsp; &nbsp; &nbsp; &nbsp; ], <br> &nbsp; &nbsp; &nbsp; &nbsp; "args":&nbsp; [ <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "1000" <br> &nbsp; &nbsp; &nbsp; &nbsp; ], <br> &nbsp; &nbsp; &nbsp; &nbsp; "file":&nbsp; "local:///tmp/spark-examples.jar", <br> &nbsp; &nbsp; &nbsp; &nbsp; "name":&nbsp; "SparkPi", <br> &nbsp; &nbsp; &nbsp; &nbsp; "className":&nbsp; "org.apache.spark.examples.SparkPi", <br> &nbsp; &nbsp; &nbsp; &nbsp; "conf":&nbsp; { <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "spark.driver.resourceSpec":&nbsp; "medium", <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "spark.executor.instances":&nbsp; 2, <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "spark.executor.resourceSpec":&nbsp; "medium" <br> &nbsp; &nbsp; &nbsp; &nbsp; } <br> }|
| **Parameters** | **Example Values / Operations** |
|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Aliyun ADB Cluster ID | amv-example |
| Aliyun ADB Resource Group | spark |
| Aliyun ADB App Type | Batch |
| Aliyun ADB Spark Data | { <br> &nbsp; &nbsp; &nbsp; &nbsp; "comments":&nbsp; [ <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "--&nbsp; Here&nbsp; is&nbsp; just&nbsp; an&nbsp; example&nbsp; of&nbsp; SparkPi.&nbsp; Modify&nbsp; the&nbsp; content&nbsp; and&nbsp; run&nbsp; your&nbsp; spark&nbsp; program." <br> &nbsp; &nbsp; &nbsp; &nbsp; ], <br> &nbsp; &nbsp; &nbsp; &nbsp; "args":&nbsp; [ <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "1000" <br> &nbsp; &nbsp; &nbsp; &nbsp; ], <br> &nbsp; &nbsp; &nbsp; &nbsp; "file":&nbsp; "local:///tmp/spark-examples.jar", <br> &nbsp; &nbsp; &nbsp; &nbsp; "name":&nbsp; "SparkPi", <br> &nbsp; &nbsp; &nbsp; &nbsp; "className":&nbsp; "org.apache.spark.examples.SparkPi", <br> &nbsp; &nbsp; &nbsp; &nbsp; "conf":&nbsp; { <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "spark.driver.resourceSpec":&nbsp; "medium", <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "spark.executor.instances":&nbsp; 2, <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "spark.executor.resourceSpec":&nbsp; "medium" <br> &nbsp; &nbsp; &nbsp; &nbsp; } <br> } |

#### SQL Type Application

| **Parameters** | **Example Values / Operations** |
| **Parameters** | **Example Values / Operations** |
|---------------------------|---------------------------------------------|
| Aliyun ADB Cluster ID | amv-example |
| Aliyun ADB Resource Group | spark |
| Aliyun ADB App Type | Batch |
| Aliyun ADB Spark Data | show databases; <br> select * from example; |
| Aliyun ADB Spark Data | show databases; <br> select * from example; |

Loading

0 comments on commit ab1f756

Please sign in to comment.