Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala CountVector中的java.util.ConcurrentModificationException_Scala_Apache Spark_Apache Spark Mllib - Fatal编程技术网

Scala CountVector中的java.util.ConcurrentModificationException

Scala CountVector中的java.util.ConcurrentModificationException,scala,apache-spark,apache-spark-mllib,Scala,Apache Spark,Apache Spark Mllib,我在下面的引用块中得到了java.util.ConcurrentModificationException异常 val cvModel: CountVectorizerModel = new CountVectorizer(). setInputCol("filtered"). setOutputCol("countVector"). setVocabSize(50000). setMinDF(20). fit(cleanedTokenized) 我正在

我在下面的引用块中得到了
java.util.ConcurrentModificationException
异常

val cvModel: CountVectorizerModel = new CountVectorizer().
    setInputCol("filtered").
    setOutputCol("countVector").
    setVocabSize(50000).
    setMinDF(20).
    fit(cleanedTokenized)

我正在使用Spark 2.0。如何解决此错误?

除非您做的事情超出此范围,否则它可能是一个错误。它是否存在于2.0.1版本中?这是我遇到此错误的版本。除非你做了更多的事情,否则它可能是一个bug。它是否存在于2.0.1中?这是我遇到此错误的版本。