spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jagadeesan A S (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-16912) Wrong import in Machine Learning documentation
Date Fri, 05 Aug 2016 07:20:20 GMT

    [ https://issues.apache.org/jira/browse/SPARK-16912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409045#comment-15409045
] 

Jagadeesan A S commented on SPARK-16912:
----------------------------------------

Please go ahead and start doing it. This will assign to you after you send a pull request
on github. [Please read it|https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark/#ContributingtoSpark-PullRequest]

> Wrong import in Machine Learning documentation 
> -----------------------------------------------
>
>                 Key: SPARK-16912
>                 URL: https://issues.apache.org/jira/browse/SPARK-16912
>             Project: Spark
>          Issue Type: Documentation
>    Affects Versions: 2.0.0
>            Reporter: Ganesh Krishnan
>            Priority: Trivial
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> The Machine Learning documentation for Spark
> http://spark.apache.org/docs/latest/ml-features.html
>  imports 
> import org.apache.spark.mllib.linalg.Vector;
> This throws a class cast exception at runtime
> For my project:
> Exception in thread "main" java.lang.ClassCastException: org.apache.spark.ml.linalg.SparseVector
cannot be cast to org.apache.spark.mllib.linalg.Vector
> 	at xyz.shoten.puddleloader.parquetcreator.IDFGenerator.main(IDFGenerator.java:55)
> It needs to import
> import org.apache.spark.ml.linalg.Vector;
> Note: The package is ml instead of mlib



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message