Skip to content

Commit

Permalink
[GOBBLIN-2176] Set default java.net.Authenticator in Temporal worke…
Browse files Browse the repository at this point in the history
…r containers (#4079)
  • Loading branch information
abhishekmjain authored Dec 2, 2024
1 parent e5d897e commit 2142d22
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
import org.apache.gobblin.metrics.event.EventSubmitter;
import org.apache.gobblin.metrics.event.GobblinEventBuilder;
import org.apache.gobblin.metrics.reporter.util.MetricReportUtils;
import org.apache.gobblin.runtime.AbstractJobLauncher;
import org.apache.gobblin.runtime.api.TaskEventMetadataGenerator;
import org.apache.gobblin.temporal.GobblinTemporalConfigurationKeys;
import org.apache.gobblin.temporal.workflows.client.TemporalWorkflowClientFactory;
Expand Down Expand Up @@ -224,6 +225,9 @@ public void start()
// Add a shutdown hook so the task scheduler gets properly shutdown
addShutdownHook();

// Update authenticator if set
AbstractJobLauncher.setDefaultAuthenticator(ConfigUtils.configToProperties(this.clusterConfig));

try {
for (int i = 0; i < this.numTemporalWorkers; i++) {
workers.add(initiateWorker());
Expand Down

0 comments on commit 2142d22

Please sign in to comment.