[Build] Set hadoop version from yarn profiles

This has been failing maven builds for a long time.