可以在pom.xml文件中使用maven的exclusions工具,语法如下:避免Hadoop-client-2.2.0.jar引入hadoop-hdfs-2.2.0.jar
org.apache.hadoop hadoop-client 2.2.0 org.apache.hadoop hadoop-hdfs