Return-Path: X-Original-To: apmail-giraph-dev-archive@www.apache.org Delivered-To: apmail-giraph-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 91EEEEB2E for ; Mon, 25 Feb 2013 17:30:13 +0000 (UTC) Received: (qmail 54638 invoked by uid 500); 25 Feb 2013 17:30:13 -0000 Delivered-To: apmail-giraph-dev-archive@giraph.apache.org Received: (qmail 54603 invoked by uid 500); 25 Feb 2013 17:30:13 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 54594 invoked by uid 500); 25 Feb 2013 17:30:13 -0000 Delivered-To: apmail-incubator-giraph-dev@incubator.apache.org Received: (qmail 54589 invoked by uid 99); 25 Feb 2013 17:30:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 17:30:13 +0000 Date: Mon, 25 Feb 2013 17:30:13 +0000 (UTC) From: "Maja Kabiljo (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GIRAPH-529) Compile error when compiling the giraph shortest path problem: getOutEdgeMap() 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/GIRAPH-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13586024#comment-13586024 ] Maja Kabiljo commented on GIRAPH-529: ------------------------------------- That example on the github was written very long time ago, and API changed a lot since then. There is no getOutEdgeMap() method anymore, you should call vertex.getEdges() to get edge iterator. You can also take a look at SimpleShortestPathsVertex in the giraph-examples. > Compile error when compiling the giraph shortest path problem: getOutEdgeMap() > ------------------------------------------------------------------------------ > > Key: GIRAPH-529 > URL: https://issues.apache.org/jira/browse/GIRAPH-529 > Project: Giraph > Issue Type: Bug > Environment: Fedora 18(64-bit), hadoop-1.0.4 version, giraph-0.1.0 version > Reporter: eunjihwang > > I have some problem when I compiling the giraph shortest path problem > I can't understand exactly getOutEdgeMap() method. > Should I implement it? > and also I have other compile errors. > I just write a source code like this; https://github.com/aching/Giraph/wiki/Shortest-Paths-Example > I attach error messages. > -------------------- > sp/SimpleShortestPathVertex.java:55: error: cannot find symbol > for(Edge edge : getOutEdgeMap().values()){ > ^ > symbol: method getOutEdgeMap() > location: class SimpleShortestPathVertex > sp/SimpleShortestPathVertex.java:74: error: cannot find symbol > FileInputFormat.addInputPath(job, new Path(args[0])); > ^ > symbol: variable FileInputFormat > location: class SimpleShortestPathVertex > sp/SimpleShortestPathVertex.java:75: error: cannot find symbol > FileOutputFormat.setOutputPath(job, new Path(args[1])); > ^ > symbol: variable FileOutputFormat > location: class SimpleShortestPathVertex > sp/SimpleShortestPathVertex.java:88: error: no suitable method found for run(SimpleShortestPathVertex,String[]) > System.exit(ToolRunner.run(new SimpleShortestPathVertex(), args)); > ^ > method ToolRunner.run(Tool,String[]) is not applicable > (actual argument SimpleShortestPathVertex cannot be converted to Tool by method invocation conversion) > method ToolRunner.run(Configuration,Tool,String[]) is not applicable > (actual and formal argument lists differ in length) > sp/SimpleShortestPathVertex.java:100: error: SimpleShortestPathVertexReader is not abstract and does not override abstract method getCurrentVertex() in VertexReader > class SimpleShortestPathVertexReader extends TextVertexReader{ > ^ > sp/SimpleShortestPathVertex.java:121: error: method addEdge in class MutableVertex cannot be applied to given types; > vertex.addEdge(new Edge(new LongWritable(jEdge.getLong(0)), new FloatWritable((float)jEdge.getDouble(1)))); > ^ > required: LongWritable,FloatWritable > found: Edge > reason: actual and formal argument lists differ in length > where I,V,E,M are type-variables: > I extends WritableComparable declared in class MutableVertex > V extends Writable declared in class MutableVertex > E extends Writable declared in class MutableVertex > M extends Writable declared in class MutableVertex > sp/SimpleShortestPathVertex.java:139: error: lineRecordWriter has private access in TextVertexWriter > super(lineRecordWriter); > ^ > sp/SimpleShortestPathVertex.java:150: error: cannot find symbol > for(Edge edge : vertex.getOutEdgeMap().values()){ > ^ > symbol: method getOutEdgeMap() > location: variable vertex of type BasicVertex > 8 errors -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira