Commit 9ec79f4f authored by shezaixing's avatar shezaixing

update

parent 5502068c
...@@ -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();
......
...@@ -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());
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment