An introduction to the YARN API