giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akis <koutras.aposto...@gmail.com>
Subject wanting to integrate my own vertex value
Date Thu, 13 Feb 2014 02:30:31 GMT
Exception in thread "main" java.lang.IllegalArgumentException: checkClassTypes: vertex value
types not assignable, computation - class org.apache.giraph.examples.utils.myVertexValue,
VertexInputFormat - class org.apache.hadoop.io.DoubleWritable
	at org.apache.giraph.job.GiraphConfigurationValidator.checkAssignable(GiraphConfigurationValidator.java:381)



Segments of my code
-----------------------------
1) Betweeness.java
-----------------------------
public class Betweeness
 extends BasicComputation<LongWritable,myVertexValue, FloatWritable, myMessage> { 

2)myVertexValue.java
----------------------------------
public class myVertexValue implements Writable {

 private long distance;
 private double sigma;
....

 @Override
  public void readFields(DataInput input) throws IOException {
 	this.sigma=input.readDouble();
.....
}


hadoop ....-vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat ...
Mime
View raw message