我正在尝试从Eclipse运行SSSP giraph程序。但是我不能导入以下包
import org.apache.giraph.graph.BasicVertex;
import org.apache.giraph.graph.BspUtils;
import org.apache.giraph.graph.GiraphJob;
import org.apache.giraph.graph.EdgeListVertex;
import org.apache.giraph.graph.VertexReader;
import org.apache.giraph.graph.VertexWriter;
import org.apache.giraph.lib.TextVertexInputFormat;
import org.apache.giraph.lib.TextVertexInputFormat.TextVertexReader;
import org.apache.giraph.lib.TextVertexOutputFormat;
import org.apache.giraph.lib.TextVertexOutputFormat.TextVertexWriter;我已经按照giraph站点上的说明构建了Giraph和Hadoop。要获得上述包,应该导入哪个jar?
发布于 2014-06-12 21:59:31
您运行的是正确版本的Giraph的代码吗?我认为您提到的导入是针对1.0.0之前的版本的,如果您为较新的版本包含一个jar,它将找不到它们。
https://stackoverflow.com/questions/23998773
复制相似问题