我正在尝试使用 nifi 接收器创建 Spark Streaming 应用程序。根据教程,我将 sbt 依赖项添加到我的构建文件中,但现在sbt assembly
由于重复数据删除错误而失败。
我的 build.sbt 文件是:
version := "0.0.1"
scalaVersion := "2.10.5"
libraryDependencies += "org.apache.spark" % "spark-core_2.10" % "1.6.1" % "provided"
libraryDependencies += "org.apache.spark" % "spark-streaming_2.10" % "1.6.1" % "provided"
libraryDependencies += "org.apache.spark" % "spark-hive_2.10" % "1.6.1" % "provided"
libraryDependencies += "org.apache.nifi" % "nifi-spark-receiver" % "0.6.1"
libraryDependencies += "org.apache.nifi" % "nifi-site-to-site-client" % "0.6.1"
我得到的错误是:
[error] (*:assembly) deduplicate: different file contents found in the following:
[error] org.apache.avro\avro-ipc\jars\avro-ipc-1.7.7-tests.jar:META-INF/maven/org.apache.avro/avro-ipc/pom.properties
[error] org.apache.avro\avro-ipc\jars\avro-ipc-1.7.7.jar:META-INF/maven/org.apache.avro/avro-ipc/pom.properties
有谁知道如何解决这个问题?
谢谢,马可