titicaca / spark-iforest

Isolation Forest on Spark
Apache License 2.0
227 stars 89 forks source link

error: object DefaultParamsWriter in package util cannot be accessed in package org.apache.spark.ml.util #23

Closed Berwin77 closed 4 years ago

Berwin77 commented 4 years ago

error: object DefaultParamsWriter in package util cannot be accessed in package org.apache.spark.ml.util

titicaca commented 4 years ago

make sure ur spark version is 2.4.x

Berwin77 commented 4 years ago

thank you ! my project spark version is 2.3! if u have history code to adaptade 2.3? thank you very much!!

titicaca commented 4 years ago

Check the release tag: https://github.com/titicaca/spark-iforest/releases/tag/v2.3.0, you can build and use the jar pkg.

However, if you want to use python api, you have to use spark 2.4.x. The python pkg currently is not compatible with the old versions.

Berwin77 commented 4 years ago

thank you very much !! woderful!