validate memoryfraction in sparkconf