DataX 导入StarRocks

2023-12-27 12:46:30

1、导入模板

说明:限速配置版本

{
	"core": {
		"transport": {
			"channel": {
				"speed": {
					"record": 100
				}
			}
		}
	},
	"job": {
		"setting": {
			"speed": {
				"record": 500
			}
		},
		"content": [
			{
				"reader": {
					"name": "mysqlreader",
					"parameter": {
						"column": [
							"eid",
							"name",
							"shareholders_tree",
							"shareholders_count",
							"holding_tree",
							"holding_count",
							"create_time",
							"update_time",
							"local_row_update_time"
						],
						"connection": [
							{
								"table": [
									"t_equity_family_tree_level6_0",
									"t_equity_family_tree_level6_1",
									"t_equity_family_tree_level6_10",
									"t_equity_family_tree_level6_11",
									"t_equity_family_tree_level6_12",
									"t_equity_family_tree_level6_13",
									"t_equity_family_tree_level6_14",
									"t_equity_family_tree_level6_15",
									"t_equity_family_tree_level6_2",
									"t_equity_family_tree_level6_3",
									"t_equity_family_tree_level6_4",
									"t_equity_family_tree_level6_5",
									"t_equity_family_tree_level6_6",
									"t_equity_family_tree_level6_7",
									"t_equity_family_tree_level6_8",
									"t_equity_family_tree_level6_9"
								],
								"jdbcUrl": [
									"jdbc:mysql://ip:3306/d_possible_relation?tinyInt1isBit=false&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useSSL=false"
								]
							}
						],
						"password": "",
						"username": "",
						"splitPk": "eid",
						"where": ""
					}
				},
				"writer": {
					"name": "starrockswriter",
					"parameter": {
						"username": "",
						"password": "",
						"database": "ods",
						"table": "t_equity_family_tree_level6",
						"column": [
							"eid",
							"name",
							"shareholders_tree",
							"shareholders_count",
							"holding_tree",
							"holding_count",
							"create_time",
							"update_time",
							"local_row_update_time"
						],
						"preSql": [
							"truncate table ods.t_equity_family_tree_level6"
						],
						"postSql": [],
						"jdbcUrl": "jdbc:mysql://fe-ip:9030/",
						"loadUrl": [
							"be-ip:8040",
							"be-ip:8040",
							"be-ip:8040"
						],
						"loadProps": {
							"format": "json",
							"strip_outer_array": true
						}
					}
				}
			}
		]
	}
}

文章来源:https://blog.csdn.net/docsz/article/details/135241430
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。