Runs both in Local FS and Hadoop FS