[SPARK-3088] fix noisy messages when run tests

There are quite noisy messages when jekins run tests with maven or sbt. For example , see from this link:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18688/consoleFull

It print flowing messages repeatedly， really noisy
"Spark assembly has been built with Hive, including Datanucleus jars on classpath
Spark assembly has been built with Hive, including Datanucleus jars on classpath
Spark assembly has been built with Hive, including Datanucleus jars on classpath"