BIGTOP-1056. some changes are introduced into Spark build: needs to be updated here