SHDP-211 Fixes for hadoop24

- Implementing new method in TestDNSToSwitchMapping
  due to changes in DNSToSwitchMapping hadoop22/hadoop24.