Improved dependency exclusion to isolate necesary and optional Hadoop
dependencies