Spark settings ref: http://qiita.com/Lewuathe/items/d6efb2152cfc8673710f