Jeff Zhang created SPARK-15750:
----------------------------------

             Summary: Constructing FPGrowth fails when no numPartitions 
specified
                 Key: SPARK-15750
                 URL: https://issues.apache.org/jira/browse/SPARK-15750
             Project: Spark
          Issue Type: Bug
          Components: MLlib
    Affects Versions: 2.0.0
            Reporter: Jeff Zhang


{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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to