Use SparkConf instead of System.getProperty

Signed-off-by: Yinan Li <liyinan926@gmail.com>