You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2012/11/22 01:35:18 UTC
svn commit: r1412390 -
/hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJob.java
Author: edwardyoon
Date: Thu Nov 22 00:35:17 2012
New Revision: 1412390
URL: http://svn.apache.org/viewvc?rev=1412390&view=rev
Log:
Replace deprecated method
Modified:
hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJob.java
Modified: hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJob.java
URL: http://svn.apache.org/viewvc/hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJob.java?rev=1412390&r1=1412389&r2=1412390&view=diff
==============================================================================
--- hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJob.java (original)
+++ hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJob.java Thu Nov 22 00:35:17 2012
@@ -151,21 +151,22 @@ public class GraphJob extends BSPJob {
@Override
public void submit() throws IOException, InterruptedException {
- Preconditions.checkArgument(this.getConf().get(VERTEX_CLASS_ATTR) != null,
+ Preconditions.checkArgument(
+ this.getConfiguration().get(VERTEX_CLASS_ATTR) != null,
"Please provide a vertex class!");
Preconditions.checkArgument(
- this.getConf().get(VERTEX_ID_CLASS_ATTR) != null,
+ this.getConfiguration().get(VERTEX_ID_CLASS_ATTR) != null,
"Please provide an vertex ID class!");
Preconditions
.checkArgument(
- this.getConf().get(VERTEX_VALUE_CLASS_ATTR) != null,
+ this.getConfiguration().get(VERTEX_VALUE_CLASS_ATTR) != null,
"Please provide an vertex value class, if you don't need one, use NullWritable!");
Preconditions
- .checkArgument(
- this.getConf().get(VERTEX_EDGE_VALUE_CLASS_ATTR) != null,
+ .checkArgument(this.getConfiguration()
+ .get(VERTEX_EDGE_VALUE_CLASS_ATTR) != null,
"Please provide an edge value class, if you don't need one, use NullWritable!");
Preconditions.checkArgument(
- this.getConf().get(VERTEX_GRAPH_INPUT_READER) != null,
+ this.getConfiguration().get(VERTEX_GRAPH_INPUT_READER) != null,
"Please provide a vertex input reader!");
super.submit();
}