Skip to content

Commit

Permalink
swich LocalEnvironment to RemoteEnviroment
Browse files Browse the repository at this point in the history
Signed-off-by: ChenYunHey <[email protected]>
  • Loading branch information
ChenYunHey committed Dec 28, 2023
1 parent 8137b9c commit 57c5095
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ public static void main(String[] args) throws SQLException {
boolean useBatch = parameter.getBoolean(BATHC_STREAM_SINK.key(), BATHC_STREAM_SINK.defaultValue());
//int replicationNum = parameter.getInt(DORIS_REPLICATION_NUM.key(), DORIS_REPLICATION_NUM.defaultValue());



String fenodes = parameter.get(DORIS_FENODES.key(), DORIS_FENODES.defaultValue());
Configuration conf = new Configuration();
conf.setString(RestOptions.BIND_PORT, "8081-8089");
StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(conf);
//StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(conf);
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(conf);
env.setParallelism(sinkParallelism);

switch (targetSyncName) {
Expand Down

0 comments on commit 57c5095

Please sign in to comment.