Spark-submit warns about non-Spark properties from an ini file but works when passed directly

I have an ini file that sets some environment-specific properties.