Return-Path: X-Original-To: apmail-hama-dev-archive@www.apache.org Delivered-To: apmail-hama-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5188109D5 for ; Mon, 30 Sep 2013 07:41:45 +0000 (UTC) Received: (qmail 66392 invoked by uid 500); 30 Sep 2013 07:39:42 -0000 Delivered-To: apmail-hama-dev-archive@hama.apache.org Received: (qmail 66290 invoked by uid 500); 30 Sep 2013 07:39:28 -0000 Mailing-List: contact dev-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hama.apache.org Delivered-To: mailing list dev@hama.apache.org Received: (qmail 66252 invoked by uid 99); 30 Sep 2013 07:39:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 07:39:23 +0000 Date: Mon, 30 Sep 2013 07:39:23 +0000 (UTC) From: "Martin Illecker (JIRA)" To: dev@hama.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HAMA-800) Hama Pipes Examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HAMA-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781651#comment-13781651 ] Martin Illecker commented on HAMA-800: -------------------------------------- Thanks for verification and testing! I have committed it. {quote} A few questions: * Are binary files summation, piestimator, and matrixmultiplication from corresponded impl/*.cc source? * MatrixA.seq, and MatrixB_transposed.seq not found in input folder. Does it required additional steps to create those files? * Do cpp sources have test cases? {quote} * Yes, the binary files summation, piestimator, and matrixmultiplication in *c++/target/native/examples/* correspond to the source files in *c++/src/main/native/examples/impl/*.cc* These example binaries are compiled together with Hama Pipes libraries in the pipes phase of mvn execution. * The MatrixA.seq and MatrixB_transposed.seq are located in *c++/src/main/native/examples/input/* and should be example input files for the matrixmultiplication But you can create your own matrix input file by {code} FileSystem fs = FileSystem.get(conf); SequenceFile.Writer writer = new SequenceFile.Writer(fs, conf, path, IntWritable.class, VectorWritable.class); double[][] matrix; for (int i = 0; i < matrix.length; i++) { DenseDoubleVector rowVector = new DenseDoubleVector(matrix[i]); writer.append(new IntWritable(i), new VectorWritable(rowVector)); } {code} * Currently the c++ source does not have a test case, but I'm working on a Hama Pipes test case > Hama Pipes Examples > ------------------- > > Key: HAMA-800 > URL: https://issues.apache.org/jira/browse/HAMA-800 > Project: Hama > Issue Type: Improvement > Affects Versions: 0.6.2 > Reporter: Martin Illecker > Assignee: Martin Illecker > Priority: Minor > Labels: examples > Fix For: 0.6.3 > > Attachments: HAMA-800.patch > > > *Adding Hama Pipes Examples* > Add C++ Hama Pipes examples [1] > - Summation > - PiEstimation > - MatrixMultiplication > and build them in maven pipes step. > [1] https://github.com/millecker/applications/tree/master/hama/pipes -- This message was sent by Atlassian JIRA (v6.1#6144)