@Override
		public void configure(YarnResourceLocalizerConfigurer localizer) throws Exception {
			localizer
				.withCopy()
					.copy("file:build/dependency-libs/*", "/lib/", false)
					.copy("file:build/libs/*", "/app/multi-context/", false)
					.and()
				.withHdfs()
					.hdfs("/app/multi-context/*.jar")
					.hdfs("/lib/*.jar");
		}
Use java config.

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