TableResult tableResult = tableEnv.executeSql(temple.sourceToIcebergSinkSql());
// tableEnv.executeSql("select * from "+ temple.mysqlTableName()).print();
//TODO 6.执行任务
Optional<JobClient> jobClient1 = tableResult.getJobClient();
if(jobClient1.isPresent()){
System.out.println("-----拿到jobId了:"+jobClient1.get().getJobID());
}else{
System.out.println("jobClient不存在");
}
flink 提交任务时获取jobid
最新推荐文章于 2024-07-18 16:45:22 发布