modified rules map building to be done on hadoop

I think this pipeline might be getting out of hand. hopefully once I've
got stats from this I can delete the weird stuff before proceeding.