运行ctakes(版本3.2.2)jar时发生异常

时间:2018-09-12 09:59:45

标签: scala apache-spark ctakes

我有一个ctakes类,在spark版本2.3.1和scala版本2.11.8中运行良好。但是当我创建该文件的jar时,它会抛出异常

Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1.0 failed 1 times, most recent failure: Lost task 0.0 in stage 1.0 (TID 1, localhost, executor driver): java.lang.IllegalAccessError: tried to access class com.carrotsearch.hppc.BitUtil from class com.carrotsearch.hppc.ObjectIntOpenHashMap
at com.carrotsearch.hppc.ObjectIntOpenHashMap.roundCapacity(ObjectIntOpenHashMap.java:562)
at com.carrotsearch.hppc.ObjectIntOpenHashMap.<init>(ObjectIntOpenHashMap.java:148)
at com.carrotsearch.hppc.ObjectIntOpenHashMap.<init>(ObjectIntOpenHashMap.java:124)
at com.carrotsearch.hppc.ObjectIntOpenHashMap.<init>(ObjectIntOpenHashMap.java:110)
at com.googlecode.clearnlp.classification.model.AbstractModel.loadLabels(AbstractModel.java:329)
at com.googlecode.clearnlp.classification.model.StringModel.load(StringModel.java:78)

这些是我尝试的依赖项,

libraryDependencies += "org.apache.ctakes" % "ctakes-clinical-pipeline" % "3.2.2"
libraryDependencies += "org.apache.ctakes" % "ctakes-constituency-parser" % "3.2.2"
libraryDependencies += "com.lexicalscope.jewelcli" % "jewelcli" % "0.8.9"
libraryDependencies += "org.apache.ctakes" % "ctakes-core" % "3.2.2"
libraryDependencies += "org.apache.ctakes" % "ctakes-dictionary-lookup-fast-res" % "3.2.2"
libraryDependencies += "org.apache.ctakes" % "ctakes-assertion-res" % "3.2.2"
libraryDependencies += "org.cleartk" % "cleartk-ml-libsvm" % "2.0.0"
libraryDependencies += "org.apache.ctakes" % "ctakes-dictionary-lookup-fast" % "3.2.2"
libraryDependencies += "org.apache.ctakes" % "ctakes-drug-ner" % "3.1.0"
libraryDependencies += "org.apache.ctakes" % "ctakes-drug-ner-res" % "3.2.1"
libraryDependencies += "org.apache.ctakes" % "ctakes-assertion" % "3.2.2"
libraryDependencies += "org.apache.uima" % "uimafit-core" % "2.0.0"
libraryDependencies += "hsqldb" % "hsqldb" % "1.8.0.10"

请帮助我。

0 个答案:

没有答案