Revert "SPARK-3039: Allow spark to be built using avro-mapred for hadoop2"

This reverts commit 78887f94a0ae9cdcfb851910ab9c7d51a1ef2acb.