adding preferGlobal to spark-cli