以下maven配置能正确读取hive.
不该加的不要加. spark版本用cdh的.
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<spark.version>2.4.0-cdh6.3.2</spark.version>
<hive.version>2.1.1-cdh6.3.2</hive.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.spark