fix spark major version issue during installation