[ https://issues.apache.org/jira/browse/SPARK-15750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph K. Bradley reassigned SPARK-15750: ----------------------------------------- Assignee: Jeff Zhang > 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 > > {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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org