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

ASF GitHub Bot commented on MAHOUT-1615:
----------------------------------------

GitHub user avati opened a pull request:

    https://github.com/apache/mahout/pull/58

    MAHOUT-1615: fix up HDFS ClassTag reading from H2O bindings

    Use the same approach taken by spark.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/avati/mahout MAHOUT-1615

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/mahout/pull/58.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #58
    
----
commit ab3bd213fd3e325ec9163b1630fdda6265763be9
Author: Anand Avati <[email protected]>
Date:   2014-10-09T22:58:13Z

    MAHOUT-1615: Fix H2O bindings to read proper ClassTag from HDFS
    
    Signed-off-by: Anand Avati <[email protected]>

commit 7d9a3d908598e7ebfc9280171107031ceb91d04c
Author: Anand Avati <[email protected]>
Date:   2014-10-09T23:01:14Z

    MAHOUT-1615: Move common helpers into math-scala from spark
    
    Signed-off-by: Anand Avati <[email protected]>

----


> SparkEngine drmFromHDFS returning the same Key for all Key,Vec Pairs for 
> Text-Keyed SequenceFiles
> -------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-1615
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1615
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Andrew Palumbo
>            Assignee: Andrew Palumbo
>             Fix For: 1.0
>
>
> When reading in seq2sparse output from HDFS in the spark-shell of form 
> <Text,VectorWriteable>  SparkEngine's drmFromHDFS method is creating rdds 
> with the same Key for all Pairs:  
> {code}
> mahout> val drmTFIDF= drmFromHDFS( path = 
> "/tmp/mahout-work-andy/20news-test-vectors/part-r-00000")
> {code}
> Has keys:
> {...} 
>     key: /talk.religion.misc/84570
>     key: /talk.religion.misc/84570
>     key: /talk.religion.misc/84570
> {...}
> for the entire set.  This is the last Key in the set.
> The problem can be traced to the first line of drmFromHDFS(...) in 
> SparkEngine.scala: 
> {code}
>  val rdd = sc.sequenceFile(path, classOf[Writable], classOf[VectorWritable], 
> minPartitions = parMin)
>         // Get rid of VectorWritable
>         .map(t => (t._1, t._2.get()))
> {code}
> which gives the same key for all t._1.
>   



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

Reply via email to