Исключение при запуске ctakes (версия 3.2.2) jar - PullRequest
0 голосов
/ 12 сентября 2018

У меня есть класс ctakes, который работал нормально в версии spark 2.3.1 и версии 2.11.8 scala.но когда я создал 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"

, пожалуйста, помогите мне.

...