YARN-2301. Improved yarn container command. Contributed by Naganarasimha G R