[
https://issues.apache.org/jira/browse/GOBBLIN-2032?focusedWorklogId=912554&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-912554
]
ASF GitHub Bot logged work on GOBBLIN-2032:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 02/Apr/24 01:58
Start Date: 02/Apr/24 01:58
Worklog Time Spent: 10m
Work Description: phet commented on code in PR #3911:
URL: https://github.com/apache/gobblin/pull/3911#discussion_r1547048111
##########
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/yarn/GobblinTemporalApplicationMaster.java:
##########
@@ -79,13 +79,14 @@ public GobblinTemporalApplicationMaster(String
applicationName, String applicati
ConfigValueFactory.fromAnyRef(YarnHelixUtils.getContainerNum(containerId.toString()))),
Optional.<Path>absent());
- String containerLogDir =
config.getString(GobblinYarnConfigurationKeys.LOGS_SINK_ROOT_DIR_KEY);
- GobblinYarnLogSource gobblinYarnLogSource = new GobblinYarnLogSource();
- if (gobblinYarnLogSource.isLogSourcePresent()) {
- Path appWorkDir = PathUtils.combinePaths(containerLogDir,
GobblinClusterUtils.getAppWorkDirPath(this.clusterName, this.applicationId),
"AppMaster");
- logCopier = gobblinYarnLogSource.buildLogCopier(this.config,
containerId.toString(), this.fs, appWorkDir);
- this.applicationLauncher
- .addService(logCopier);
+ if (config.hasPath(GobblinYarnConfigurationKeys.LOGS_SINK_ROOT_DIR_KEY)) {
+ String containerLogDir =
config.getString(GobblinYarnConfigurationKeys.LOGS_SINK_ROOT_DIR_KEY);
+ GobblinYarnLogSource gobblinYarnLogSource = new GobblinYarnLogSource();
+ if (gobblinYarnLogSource.isLogSourcePresent()) {
+ Path appWorkDir = PathUtils.combinePaths(containerLogDir,
GobblinClusterUtils.getAppWorkDirPath(this.clusterName, this.applicationId),
"AppMaster");
Review Comment:
do we need anything similar for the TaskRunner?
Issue Time Tracking
-------------------
Worklog Id: (was: 912554)
Time Spent: 0.5h (was: 20m)
> Support making log dir sink optional
> ------------------------------------
>
> Key: GOBBLIN-2032
> URL: https://issues.apache.org/jira/browse/GOBBLIN-2032
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-cluster
> Reporter: William Lo
> Assignee: Hung Tran
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> In Gobblin cluster, there is a configuration to set the log sink in order to
> create a log copier service which copies logs to HDFS from Yarn cluster.
> Since Yarn has a built in log aggregator, we should have a way to disable
> this log sink since it becomes redundant, so we should look into ways to make
> the log directory optional.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)