[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-08 Thread Jakob Homan (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13146340#comment-13146340
 ] 

Jakob Homan commented on GIRAPH-47:
---

Avery, can attach the final diff that you committed to the tree, for 
bookkeeping purposes?

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff, GIRAPH-47.diff, GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-07 Thread Avery Ching (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145694#comment-13145694
 ] 

Avery Ching commented on GIRAPH-47:
---

Sorry, Claudio, my bad.  I still had remnants of GIRAPH-64.  It's fine and 
passes local unittests.  

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff, GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-07 Thread jirapos...@reviews.apache.org (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145716#comment-13145716
 ] 

jirapos...@reviews.apache.org commented on GIRAPH-47:
-


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2746/#review3082
---


Claudio, really nice stuff here.  Most of my comments are related to indenting. 
 But otherwise, this is a lot better IMO.  Please take a look at 
CODE_CONVENTIONS and fix accordingly.  While the official policy is 2 space, at 
this time, for the 4 space indented files, please keep to 4 spaces for 
consistency.  We will transition everything over at some point.  New files can 
be 2 space (new convention) if desired.


http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6885

This doesn't need to be static anymore.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6870

Indenting should be 8 spaces.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6873

extra line.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6874

extra line.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6875

4 spaces.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6871

4 spaces indenting.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6872

4 spaces indenting.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
https://reviews.apache.org/r/2746/#comment6876

Align to GiraphJob.WORKER_CONTEXT_CLASS



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleMutateGraphVertex.java
https://reviews.apache.org/r/2746/#comment6877

VERTEX_COUNT shouldn't be capitalized.  All caps should be reserved for 
only static values.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleMutateGraphVertex.java
https://reviews.apache.org/r/2746/#comment6878

EDGE_COUNT shouldn't be capitalized.  All caps should be reserved for only 
static values.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimplePageRankVertex.java
https://reviews.apache.org/r/2746/#comment6887

These no longer need to be static anymore, could be private variables that 
have public accessor method.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleVertexWithWorkerContext.java
https://reviews.apache.org/r/2746/#comment6879

Might want to add a comment about this example.  I.e.

/**
 * Fully runnable example of how to 
 * emit worker data to HDFS during a graph
 * computation.
 */



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BasicVertex.java
https://reviews.apache.org/r/2746/#comment6880

extra line.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BspService.java
https://reviews.apache.org/r/2746/#comment6881

Awesome, I hated this.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BspServiceWorker.java
https://reviews.apache.org/r/2746/#comment6882

indenting.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/DefaultWorkerContext.java
https://reviews.apache.org/r/2746/#comment6883

extra line.



http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/WorkerContext.java
https://reviews.apache.org/r/2746/#comment6884

Other javadoc has lines in between comment and params (i.e.

* superstep starts.
*
* @throws IllegalAccessException


- Avery


On 2011-11-07 19:09:08, Avery Ching wrote:
bq.  
bq.  ---
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  

[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-07 Thread jirapos...@reviews.apache.org (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145754#comment-13145754
 ] 

jirapos...@reviews.apache.org commented on GIRAPH-47:
-



bq.  On 2011-11-07 19:12:55, Avery Ching wrote:
bq.   Claudio, really nice stuff here.  Most of my comments are related to 
indenting.  But otherwise, this is a lot better IMO.  Please take a look at 
CODE_CONVENTIONS and fix accordingly.  While the official policy is 2 space, at 
this time, for the 4 space indented files, please keep to 4 spaces for 
consistency.  We will transition everything over at some point.  New files can 
be 2 space (new convention) if desired.

Ok, still have to understand a bit the code conventions. Trying to stick to 
them. Maybe an Eclipse format conf file would help? Could you share yours, if 
you have one?


bq.  On 2011-11-07 19:12:55, Avery Ching wrote:
bq.   
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimplePageRankVertex.java,
 lines 91-92
bq.   https://reviews.apache.org/r/2746/diff/1/?file=56634#file56634line91
bq.  
bq.   These no longer need to be static anymore, could be private 
variables that have public accessor method.

Not sure we can do this. How will tests get to their values. Can't access those 
members if not static.


bq.  On 2011-11-07 19:12:55, Avery Ching wrote:
bq.   
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java,
 lines 250-251
bq.   https://reviews.apache.org/r/2746/diff/1/?file=56632#file56632line250
bq.  
bq.   Align to GiraphJob.WORKER_CONTEXT_CLASS

What do you mean? I aligned to the example, all classes are set with 
.setClass() there. Fixing the whole thing.


bq.  On 2011-11-07 19:12:55, Avery Ching wrote:
bq.   
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java,
 line 150
bq.   https://reviews.apache.org/r/2746/diff/1/?file=56632#file56632line150
bq.  
bq.   This doesn't need to be static anymore.

Can't make it non static. Won't be able to read from tests.


- Claudio


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2746/#review3082
---


On 2011-11-07 19:09:08, Avery Ching wrote:
bq.  
bq.  ---
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/2746/
bq.  ---
bq.  
bq.  (Updated 2011-11-07 19:09:08)
bq.  
bq.  
bq.  Review request for giraph.
bq.  
bq.  
bq.  Summary
bq.  ---
bq.  
bq.  Claudio's patch for GIRAPH-47.
bq.  
bq.  
bq.  This addresses bug GIRAPH-47.
bq.  https://issues.apache.org/jira/browse/GIRAPH-47
bq.  
bq.  
bq.  Diffs
bq.  -
bq.  
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/benchmark/PageRankBenchmark.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/benchmark/RandomMessageBenchmark.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/bsp/CentralizedService.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/bsp/CentralizedServiceWorker.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleCheckpointVertex.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleMutateGraphVertex.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimplePageRankVertex.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/examples/SimpleVertexWithWorkerContext.java
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BasicVertex.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BspService.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BspServiceWorker.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/BspUtils.java
 1198865 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/DefaultWorkerContext.java
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/incubator/giraph/trunk/src/main/java/org/apache/giraph/graph/GiraphJob.java
 1198865 

[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-07 Thread Avery Ching (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145868#comment-13145868
 ] 

Avery Ching commented on GIRAPH-47:
---

+1
Thanks Claudio. I'm going to commit on your behalf.  I made a few small changes 
to fix the code conventions.  I also fixed a bug in the distributed unittests 
(WorkerContext not set for TestAutoCheckpoint).  The local unittests can't 
catch that one.  Next time, you'll want to run against a real Hadoop instance 
to catch problems (i.e.  mvn test -Dprop.mapred.job.tracker=localhost:50300).  
You'll want to replace 'localhost:50300' with your actual Hadoop jobtracker and 
port settings.  



 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff, GIRAPH-47.diff, GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-07 Thread Avery Ching (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145879#comment-13145879
 ] 

Avery Ching commented on GIRAPH-47:
---

I filed issue https://issues.apache.org/jira/browse/INFRA-4097.

Something is weird with hudson, cannot find mvn.

https://builds.apache.org/job/Giraph-trunk-Commit/24/console
snip
[Giraph-trunk-Commit] $ /bin/bash -x /tmp/hudson6174557603739055037.sh
+ export JAVA_HOME=/home/jenkins/tools/java/latest
+ JAVA_HOME=/home/jenkins/tools/java/latest
+ export MAVEN_HOME=/home/jenkins/tools/maven/latest
+ MAVEN_HOME=/home/jenkins/tools/maven/latest
+ export 
PATH=/home/jenkins/tools/java/latest/bin:/home/jenkins/tools/maven/latest/bin:/home/hudson/tools/java/latest1.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/hudson/.rvm/bin
+ 
PATH=/home/jenkins/tools/java/latest/bin:/home/jenkins/tools/maven/latest/bin:/home/hudson/tools/java/latest1.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/hudson/.rvm/bin
+ which java
/home/hudson/tools/java/latest1.6/bin/java
+ cd /home/hudson/hudson-slave/workspace/Giraph-trunk-Commit/trunk
+ /home/jenkins/tools/maven/latest/bin/mvn clean compile test
/tmp/hudson6174557603739055037.sh: line 9: 
/home/jenkins/tools/maven/latest/bin/mvn: No such file or directory
Build step 'Execute shell' marked build as failure
Updating GIRAPH-47
Recording test results
Finished: FAILURE


 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff, GIRAPH-47.diff, GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-06 Thread Claudio Martella (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145122#comment-13145122
 ] 

Claudio Martella commented on GIRAPH-47:


Once this is committed, i'd open a new issue to remove AggregatorUsage 
implementation from BasicVertex, it doesn't make much sense anymore (same as 
with getContext, or?).

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff, GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-06 Thread Jakob Homan (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145133#comment-13145133
 ] 

Jakob Homan commented on GIRAPH-47:
---

This looks good but I have some comments when not typing on glass. Avery - did 
you do a git clean before applying? Sounds like you still have the new files 
from 64 in the tree.

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff, GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-05 Thread Claudio Martella (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13144671#comment-13144671
 ] 

Claudio Martella commented on GIRAPH-47:


I'm actually kind of a big fan of passing the GraphState to WorkerContext. I've 
already changed the API accordingly and noticed it's often very handy. Checkout 
what pre/post/superstep/application code does in the examples and benchmarks, 
it often relies on things like the current superstep, the number of vertices 
etc, all things that are easily accessible by GraphState. Maybe we might want 
to hide some of them by making WorkerContext an abstract and proxy them? In 
this case we might want to proxy the aggregatorUsage code as well. Wouldn't 
this go more towards the direction Jakob was thinking? All this could then be 
simply removed from BasicVertex.

Currently WorkerContext cannot implement Aggregator methods as it doesn't have 
a handle to AggregatorUsage, or am I missing something?

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-05 Thread Avery Ching (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13144735#comment-13144735
 ] 

Avery Ching commented on GIRAPH-47:
---

I agree with the proxy approach of WorkerContext so that a user can access a 
subset of the graph state methods without directly accessing graph state.  You 
don't want the user to for instance setGraphMapper.

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-11-04 Thread Claudio Martella (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13143927#comment-13143927
 ] 

Claudio Martella commented on GIRAPH-47:


Fixing the examples and benchmarks to the new API.

Problem:

How do vertices register aggregators? WorkerContext accesses only 
Mapper.Context. I propose to change the API and pass GraphState at 
preApplication() instead. This way the WorkerContext can also have a broader 
view about the current state of graph and computation. 

Any cons? 

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
 Attachments: GIRAPH-47.diff


 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-10-11 Thread Avery Ching (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13125217#comment-13125217
 ] 

Avery Ching commented on GIRAPH-47:
---

I was thinking about the later approach that you mentioned 
((MyEmitterWorkerContext)this.getWorkerContext()).emit(mydata). I doubt the 
cast is that expensive, it's not boxing/unboxing.  If there is a cleaner way to 
do it that would allow users to do pretty much anything with their 
WorkerContext, I'm open to it.  But this should work.

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella

 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep

2011-10-05 Thread Claudio Martella (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13121399#comment-13121399
 ] 

Claudio Martella commented on GIRAPH-47:


Sounds very reasonable. We would then remove those methods from BasicVertex API 
I guess. I'll work on this. Unfortunately I can't test it on my application as 
it's blocked by GIRAPH-36, so I'll think about a toy-example to test this out.

One question: what would be this Configurable workerObject you'd pass to the 
WorkerContext implementation?

 Export Worker's Context/State to vertices through 
 pre/post/Application/Superstep
 

 Key: GIRAPH-47
 URL: https://issues.apache.org/jira/browse/GIRAPH-47
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella

 It would be quite useful for vertices to reach some worker-related 
 information stored i.e. in the GraphState class.
 This information could be exported as a parameter to 
 pre/post/Application/Superstep like this:
 public void preApplication(Configurable workerObject);
 public void postApplication(Configurable workerObject);
 public void preSuperstep(Configurable workerObject);
 public void postSuperstep(Configurable workerObject);
 public Configurable getWorkerObject();
 Another possibility is to add a Context inner class to BasicVertex to store 
 this information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira