Modified the code like sparkConf.get(...).toBoolean to sparkConf.getBoolean(...)