Github user chtyim commented on a diff in the pull request:
https://github.com/apache/incubator-twill/pull/49#discussion_r33199853
--- Diff:
twill-core/src/main/java/org/apache/twill/internal/TwillContainerLauncher.java
---
@@ -112,7 +112,8 @@ public TwillContainerController start(RunId runId, int
instanceId, Class<?> main
.addEnvironment(EnvKeys.TWILL_RUN_ID, runId.getId())
.addEnvironment(EnvKeys.TWILL_RUNNABLE_NAME, runtimeSpec.getName())
.addEnvironment(EnvKeys.TWILL_INSTANCE_ID,
Integer.toString(instanceId))
- .addEnvironment(EnvKeys.TWILL_INSTANCE_COUNT,
Integer.toString(instanceCount));
+ .addEnvironment(EnvKeys.TWILL_INSTANCE_COUNT,
Integer.toString(instanceCount))
+ .addEnvironment(EnvKeys.YARN_CLASSPATH, "`yarn classpath`");
--- End diff --
Don't make it call command. Instead, get it from YarnConfiguration on the
client side to set it up for the AM launcher. The AM will propagate it to
container environment when launch a container.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---