|
@@ -51,7 +51,6 @@ import org.apache.hadoop.yarn.api.records.ContainerId;
|
|
|
import org.apache.hadoop.yarn.api.records.ContainerLaunchContext;
|
|
|
import org.apache.hadoop.yarn.api.records.NodeId;
|
|
|
import org.apache.hadoop.yarn.client.NMProxy;
|
|
|
-import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
|
|
import org.apache.hadoop.yarn.event.EventHandler;
|
|
|
import org.apache.hadoop.yarn.exceptions.YarnException;
|
|
|
import org.apache.hadoop.yarn.ipc.YarnRPC;
|
|
@@ -189,9 +188,6 @@ public class AMLauncher implements Runnable {
|
|
|
ContainerLaunchContext container =
|
|
|
applicationMasterContext.getAMContainerSpec();
|
|
|
|
|
|
- // Populate the current queue name in the environment variable.
|
|
|
- setupQueueNameEnv(container, applicationMasterContext);
|
|
|
-
|
|
|
// Finalize the container
|
|
|
setupTokens(container, containerID);
|
|
|
// set the flow context optionally for timeline service v.2
|
|
@@ -200,16 +196,6 @@ public class AMLauncher implements Runnable {
|
|
|
return container;
|
|
|
}
|
|
|
|
|
|
- private void setupQueueNameEnv(ContainerLaunchContext container,
|
|
|
- ApplicationSubmissionContext applicationMasterContext) {
|
|
|
- String queueName = applicationMasterContext.getQueue();
|
|
|
- if (queueName == null) {
|
|
|
- queueName = YarnConfiguration.DEFAULT_QUEUE_NAME;
|
|
|
- }
|
|
|
- container.getEnvironment().put(ApplicationConstants.Environment
|
|
|
- .YARN_RESOURCEMANAGER_APPLICATION_QUEUE.key(), queueName);
|
|
|
- }
|
|
|
-
|
|
|
@Private
|
|
|
@VisibleForTesting
|
|
|
protected void setupTokens(
|