improve Yarn2 compatibility in terms of properties

centralize Hadoop props usage in one class with Yarn awareness
uses yarn properties first and fall back to Hadoop 1 ones