[
https://issues.apache.org/jira/browse/MAHOUT-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14150401#comment-14150401
]
ASF GitHub Bot commented on MAHOUT-1615:
----------------------------------------
Github user dlyubimov commented on the pull request:
https://github.com/apache/mahout/pull/52#issuecomment-57042362
well, it compiles for me and doesn't compile for you. one way is to commit
and see what jenkins says. Worst case, it is extremely easy to issue a
revert the next day.
On Fri, Sep 26, 2014 at 5:41 PM, Andrew Palumbo <[email protected]>
wrote:
> Doesn't look like my workarounds pass the tests:
>
> private[common] def w2bytes(w: Writable) =
>
Arrays.copyOf(w.asInstanceOf[BytesWritable].getBytes(),
> w.asInstanceOf[BytesWritable].getLength())
>
> should be ok but:
>
> .filter { s => !s.getPath.getName.startsWith("\\.") && !s.isDir}
>
> doesn't work in DRM DFS test:
>
> - DRM DFS i/o (local) *** FAILED ***
> java.io.EOFException:
> at java.io.DataInputStream.readFully(DataInputStream.java:197)
> at java.io.DataInputStream.readFully(DataInputStream.java:169)
> at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1512)
> at
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1490)
> at
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1479)
> at
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1474)
> at
org.apache.mahout.common.Hadoop1HDFSUtil$.readDrmHeader(Hadoop1HDFSUtil.scala:53)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/mahout/pull/52#issuecomment-57036558>.
>
> 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
> 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)