Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-dsc-flink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shezaixing
dsk-dsc-flink
Commits
9ec79f4f
Commit
9ec79f4f
authored
Dec 25, 2023
by
shezaixing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5502068c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
SyncCustomerDataSource.java
...n/java/com/dsk/flink/dsc/sync/SyncCustomerDataSource.java
+2
-2
EnvPropertiesUtil.java
src/main/java/com/dsk/flink/dsc/utils/EnvPropertiesUtil.java
+0
-9
No files found.
src/main/java/com/dsk/flink/dsc/sync/SyncCustomerDataSource.java
View file @
9ec79f4f
...
@@ -64,7 +64,7 @@ public class SyncCustomerDataSource {
...
@@ -64,7 +64,7 @@ public class SyncCustomerDataSource {
.
name
(
"canalJsonStream"
)
.
name
(
"canalJsonStream"
)
.
uid
(
"canalJsonStream"
);
.
uid
(
"canalJsonStream"
);
canalJsonStream
.
print
(
"canal stream"
);
//
canalJsonStream.print("canal stream");
SingleOutputStreamOperator
<
String
>
sqlResultStream
=
AsyncDataStream
.
orderedWait
(
canalJsonStream
,
new
AsyncMysqlDataTransferFunction
(
envProps
),
1200L
,
TimeUnit
.
SECONDS
,
20
)
SingleOutputStreamOperator
<
String
>
sqlResultStream
=
AsyncDataStream
.
orderedWait
(
canalJsonStream
,
new
AsyncMysqlDataTransferFunction
(
envProps
),
1200L
,
TimeUnit
.
SECONDS
,
20
)
.
filter
(
new
FilterFunction
<
String
>()
{
.
filter
(
new
FilterFunction
<
String
>()
{
...
@@ -76,7 +76,7 @@ public class SyncCustomerDataSource {
...
@@ -76,7 +76,7 @@ public class SyncCustomerDataSource {
.
name
(
"sqlResultStream"
)
.
name
(
"sqlResultStream"
)
.
uid
(
"sqlResultStream"
);
.
uid
(
"sqlResultStream"
);
sqlResultStream
.
print
(
"sql result"
);
//
sqlResultStream.print("sql result");
sqlResultStream
.
addSink
(
new
MysqlDataTransferSink
(
envProps
)).
name
(
"sqlSinkStream"
).
uid
(
"sqlSinkStream"
);
sqlResultStream
.
addSink
(
new
MysqlDataTransferSink
(
envProps
)).
name
(
"sqlSinkStream"
).
uid
(
"sqlSinkStream"
);
env
.
execute
();
env
.
execute
();
...
...
src/main/java/com/dsk/flink/dsc/utils/EnvPropertiesUtil.java
View file @
9ec79f4f
...
@@ -163,13 +163,4 @@ public class EnvPropertiesUtil {
...
@@ -163,13 +163,4 @@ public class EnvPropertiesUtil {
return
"application_[a-z]{3,5}\\.properties"
;
return
"application_[a-z]{3,5}\\.properties"
;
}
}
public
static
void
main
(
String
[]
args
)
throws
IOException
{
String
filePath
=
"D:\\Env\\application_pro.properties"
;
System
.
out
.
println
(
getPropertiesFromArgsPath
(
filePath
).
toString
());
EnvProperties
envProperties
=
getPropertiesFromArgsPath
(
filePath
);
System
.
out
.
println
(
envProperties
.
getDb_database
());
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment