spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph K. Bradley (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-15750) Constructing FPGrowth fails when no numPartitions specified in pyspark
Date Mon, 07 May 2018 21:50:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-15750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joseph K. Bradley resolved SPARK-15750.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 13493
[https://github.com/apache/spark/pull/13493]

> Constructing FPGrowth fails when no numPartitions specified in pyspark
> ----------------------------------------------------------------------
>
>                 Key: SPARK-15750
>                 URL: https://issues.apache.org/jira/browse/SPARK-15750
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib, PySpark
>    Affects Versions: 2.0.0
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>            Priority: Major
>             Fix For: 2.4.0
>
>
> {code}
> >>> model1 = FPGrowth.train(rdd, 0.6)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/Users/jzhang/github/spark-2/python/pyspark/mllib/fpm.py", line 96, in train
>     model = callMLlibFunc("trainFPGrowthModel", data, float(minSupport), int(numPartitions))
>   File "/Users/jzhang/github/spark-2/python/pyspark/mllib/common.py", line 130, in callMLlibFunc
>     return callJavaFunc(sc, api, *args)
>   File "/Users/jzhang/github/spark-2/python/pyspark/mllib/common.py", line 123, in callJavaFunc
>     return _java2py(sc, func(*args))
>   File "/Users/jzhang/github/spark-2/python/lib/py4j-0.10.1-src.zip/py4j/java_gateway.py",
line 933, in __call__
>   File "/Users/jzhang/github/spark-2/python/pyspark/sql/utils.py", line 79, in deco
>     raise IllegalArgumentException(s.split(': ', 1)[1], stackTrace)
> pyspark.sql.utils.IllegalArgumentException: u'requirement failed: Number of partitions
must be positive but got -1'
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message