Allow choice of local/hadoop mode.