@Override
		public void configure(YarnClientConfigurer client) throws Exception {
			Properties arguments = new Properties();
			arguments.put("container-count", "4");
			client
				.withMasterRunner()
					.contextClass(AppmasterConfiguration.class)
					.arguments(arguments);
		}
Use java config.

@author Janne Valkealahti
yarn/yarn/multi-context/src/test/java/org/springframework/yarn/examples/MultiContextJavaConfigTests.java