1
0

[HUDI-2931] Add config to disable table services (#4777)

This commit is contained in:
Raymond Xu
2022-02-15 06:49:53 -08:00
committed by GitHub
parent fe02c64fea
commit 538ec44fa8
12 changed files with 199 additions and 11 deletions

View File

@@ -18,7 +18,7 @@
package org.apache.hudi.sink.compact;
import org.apache.hudi.async.HoodieAsyncService;
import org.apache.hudi.async.HoodieAsyncTableService;
import org.apache.hudi.avro.model.HoodieCompactionPlan;
import org.apache.hudi.client.HoodieFlinkWriteClient;
import org.apache.hudi.common.table.HoodieTableMetaClient;
@@ -116,7 +116,7 @@ public class HoodieFlinkCompactor {
/**
* Schedules compaction in service.
*/
public static class AsyncCompactionService extends HoodieAsyncService {
public static class AsyncCompactionService extends HoodieAsyncTableService {
private static final long serialVersionUID = 1L;
/**
@@ -173,6 +173,7 @@ public class HoodieFlinkCompactor {
CompactionUtil.inferChangelogMode(conf, metaClient);
this.writeClient = StreamerUtil.createWriteClient(conf);
this.writeConfig = writeClient.getConfig();
this.table = writeClient.getHoodieTable();
}