diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2016-07-05 17:00:24 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2016-07-05 17:00:24 -0700 |
commit | fdde7d0aa0ef69d0e9a88cf712601bba1d5b0706 (patch) | |
tree | 8f1c6be72c453dbd33d864c6ca54e2b2d28a480c /python/pyspark/mllib/feature.py | |
parent | 59f9c1bd1adfea7069e769fb68351c228c37c8fc (diff) | |
download | spark-fdde7d0aa0ef69d0e9a88cf712601bba1d5b0706.tar.gz spark-fdde7d0aa0ef69d0e9a88cf712601bba1d5b0706.tar.bz2 spark-fdde7d0aa0ef69d0e9a88cf712601bba1d5b0706.zip |
[SPARK-16348][ML][MLLIB][PYTHON] Use full classpaths for pyspark ML JVM calls
## What changes were proposed in this pull request?
Issue: Omitting the full classpath can cause problems when calling JVM methods or classes from pyspark.
This PR: Changed all uses of jvm.X in pyspark.ml and pyspark.mllib to use full classpath for X
## How was this patch tested?
Existing unit tests. Manual testing in an environment where this was an issue.
Author: Joseph K. Bradley <joseph@databricks.com>
Closes #14023 from jkbradley/SPARK-16348.
Diffstat (limited to 'python/pyspark/mllib/feature.py')
-rw-r--r-- | python/pyspark/mllib/feature.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/mllib/feature.py b/python/pyspark/mllib/feature.py index e31c75c1e8..aef91a8ddc 100644 --- a/python/pyspark/mllib/feature.py +++ b/python/pyspark/mllib/feature.py @@ -553,7 +553,7 @@ class Word2VecModel(JavaVectorTransformer, JavaSaveable, JavaLoader): """ jmodel = sc._jvm.org.apache.spark.mllib.feature \ .Word2VecModel.load(sc._jsc.sc(), path) - model = sc._jvm.Word2VecModelWrapper(jmodel) + model = sc._jvm.org.apache.spark.mllib.api.python.Word2VecModelWrapper(jmodel) return Word2VecModel(model) |