File tree 4 files changed +15
-2
lines changed
main/java/com/linkedin/tony
test/java/com/linkedin/tony
4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ ext.deps = [
92
92
93
93
allprojects {
94
94
group = " com.linkedin.tony"
95
- project. version = " 0.4.11 "
95
+ project. version = " 0.4.12 "
96
96
}
97
97
98
98
task sourcesJar (type : Jar ) {
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ private TonyConfigurationKeys() {
155
155
public static final String TASK_EXECUTOR_JVM_OPTS = TONY_TASK_PREFIX + "executor.jvm.opts" ;
156
156
public static final String DEFAULT_TASK_EXECUTOR_JVM_OPTS = "-Xmx1536m" ;
157
157
158
+ public static final String TASK_EXECUTOR_JAVA_AGENT = TONY_TASK_PREFIX + "executor.java.agent" ;
159
+
158
160
public static final String TASK_HEARTBEAT_INTERVAL_MS = TONY_TASK_PREFIX + "heartbeat-interval-ms" ;
159
161
public static final int DEFAULT_TASK_HEARTBEAT_INTERVAL_MS = 1000 ;
160
162
Original file line number Diff line number Diff line change @@ -429,14 +429,24 @@ public TonySession build() {
429
429
}
430
430
431
431
public Builder setTaskExecutorJVMArgs (String jvmArgs ) {
432
- this .jvmArgs = jvmArgs ;
432
+ this .jvmArgs = appendDefaultJVMArgs ( jvmArgs ) ;
433
433
return this ;
434
434
}
435
435
436
436
public Builder setTonyConf (Configuration tonyConf ) {
437
437
this .tonyConf = tonyConf ;
438
438
return this ;
439
439
}
440
+
441
+ // Appends default jvm arguments to task executor job
442
+ private String appendDefaultJVMArgs (String jvmArgs ) {
443
+ jvmArgs += " -Dlog4j2.formatMsgNoLookups=true" ;
444
+ String tonyTaskExecutorJavaAgent = tonyConf .get (TonyConfigurationKeys .TASK_EXECUTOR_JAVA_AGENT , "" );
445
+ if (!tonyTaskExecutorJavaAgent .isEmpty ()) {
446
+ jvmArgs += " -javaagent:" + tonyTaskExecutorJavaAgent ;
447
+ }
448
+ return jvmArgs ;
449
+ }
440
450
}
441
451
442
452
@ VisibleForTesting
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public void initializeMemberVariables() {
49
49
configurationPropsToSkipCompare .add (TonyConfigurationKeys .APPLICATION_TRAINING_STAGE );
50
50
configurationPropsToSkipCompare .add (TonyConfigurationKeys .APPLICATION_HADOOP_LOCATION );
51
51
configurationPropsToSkipCompare .add (TonyConfigurationKeys .APPLICATION_HADOOP_CLASSPATH );
52
+ configurationPropsToSkipCompare .add (TonyConfigurationKeys .TASK_EXECUTOR_JAVA_AGENT );
52
53
configurationPropsToSkipCompare .add (TonyConfigurationKeys .TENSORBOARD_LOG_DIR );
53
54
configurationPropsToSkipCompare .add (TonyConfigurationKeys .PYTHON_EXEC_PATH );
54
55
configurationPropsToSkipCompare .add (TonyConfigurationKeys .TB_VCORE );
You can’t perform that action at this time.
0 commit comments