Per doc in https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/OpportunisticContainers.html#Running_a_Sample_Job, user can run some of PI job mappers as O containers. Similarly, propose to extend distributed shell to support specifying the container type, it will be very helpful for testing. Propose to add following argument
Implication: all containers in a distributed shell job will be launching as user-specified container type (except for AM), if not given, default type is GUARANTEED. AM is always launched as GUARANTEED container.