NOT READY FOR MERGE: Convert hadoop builds to the ruby script

testing on the branch first.