tried to access methos com.google.common.base.Stopwatch.()V from class org.apache.hadoop.mapred.FileInputFormat
应该是spark依赖低版本的guava,删除原有的guava,导入新的guava
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.4.5</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
</dependency>