Skip to content

Commit

Permalink
[INLONG-10597][Sort] Provide default pulsar producer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vernedeng committed Jul 10, 2024
1 parent 841bc02 commit b290ec9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ public void reload() {
this.pulsarNodeConfig = requestNodeConfig;
}

CacheClusterConfig clusterConfig = new CacheClusterConfig();
clusterConfig.setClusterName(this.taskName);
clusterConfig.setParams(this.sortTaskConfig.getSinkParams());
this.cacheClusterConfig = clusterConfig;

this.taskConfig = newTaskConfig;
this.sortTaskConfig = newSortTaskConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.apache.inlong.sort.standalone.utils.Constants;
import org.apache.inlong.sort.standalone.utils.InlongLoggerFactory;

import com.google.common.collect.Maps;
import org.apache.commons.lang3.StringUtils;
import org.apache.flume.Context;
import org.apache.flume.Transaction;
Expand Down Expand Up @@ -165,8 +164,7 @@ private void initBuilderByCacheCluster(CacheClusterConfig cacheClusterConfig) {

private void initBuilderByNodeConfig(PulsarNodeConfig nodeConfig) {
this.cacheClusterName = nodeConfig.getNodeName();
this.context = new Context(nodeConfig.getProperties() == null ?
new HashMap<>() : nodeConfig.getProperties());
this.context = new Context(nodeConfig.getProperties() == null ? new HashMap<>() : nodeConfig.getProperties());

clientBuilder = PulsarClient.builder();
String serviceUrl = nodeConfig.getServiceUrl();
Expand Down Expand Up @@ -310,5 +308,4 @@ public boolean send(ProfileEvent profileEvent, Transaction tx) throws IOExceptio
return true;
}


}

0 comments on commit b290ec9

Please sign in to comment.