Add Hadoop mode.  Not yet tested.