Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方
Blazer
提交
78591909
B
Blazer
项目概览
MaxKey单点登录官方
/
Blazer
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Blazer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
78591909
编写于
4月 09, 2019
作者:
MaxKey单点登录官方
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RM
上级
1bbba81c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
10 deletion
+12
-10
README.md
README.md
+12
-10
未找到文件。
README.md
浏览文件 @
78591909
...
...
@@ -11,12 +11,17 @@ Blazer意为**传播者**,主要实现不同数据库之间的数据同步,
5.
目前支持数据有mysql/MariaDB,Greenplum,Oracle,DB2,PostgreSQL;
6.
支持JDK支持平台,JDK1.8+
------------
项目基于Java Spring Framework框架,简化了系统的配置,引入"管道"(PipeLine)的概念,一个管道包含多个任务,任务可以是数据同步、导入、导出或者表结构的导出。
在不同的XML中引入不同管道任务,实现不同的功能,其中pipeLine.xml描述管道的功能,需要根据需求进行定义,可以基于以下的命令内容copy出不同脚本功能。
在不同的XML中引入不同管道任务,实现不同的功能,其中pipeLine.xml描述管道的功能,需要根据需求进行定义,可以基于以下的命令内容copy出不同脚本功能,传入不同的"管道"实现不同的功能。
------------
#### 脚本
PipeLineRunner.bat
````
bash
@echo off
...
...
@@ -117,8 +122,8 @@ ${JAVA_EXEC} ${JAVA_OPTS} -classpath ${JAVA_CLASSPATH} ${JAVA_MAINCLASS} --confi
echo
run finished
```
###### 实现Oracle到greenplum数据同步pipeLine
#### "管道"(PipeLine)
######
1、
实现Oracle到greenplum数据同步pipeLine
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
...
...
@@ -132,7 +137,6 @@ echo run finished
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd"
>
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
><list>
...
...
@@ -183,7 +187,7 @@ echo run finished
</util:list>
</beans>
```
###### 数据库数据导出到文件(csv,xlsx,xls)pipeLine
######
2、
数据库数据导出到文件(csv,xlsx,xls)pipeLine
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
...
...
@@ -197,7 +201,6 @@ echo run finished
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd"
>
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
><list>
...
...
@@ -266,7 +269,7 @@ echo run finished
</util:list>
</beans>
```
###### 数据文件导入到数据库 pipeLine
######
3、
数据文件导入到数据库 pipeLine
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
...
...
@@ -371,7 +374,7 @@ echo run finished
</util:list>
</beans>
```
######
数据表结构导出成制
定数据库DDL pipeLine
######
4、数据表结构导出特
定数据库DDL pipeLine
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
...
...
@@ -385,7 +388,7 @@ echo run finished
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd"
>
<!-- Application properties configs 应用程序属性配置文件-->
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
><list>
<value>
/pipeline/config/applicationConfig.properties
</value>
...
...
@@ -421,6 +424,5 @@ echo run finished
<util:list
id=
"pipeLineTask"
list-class=
"java.util.ArrayList"
>
<ref
bean=
"dllExport"
/>
</util:list>
</beans>
```
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录