Changed to load data either strictly locally or strictly HDFS