找不到导入的Giraph包的罐子

时间:2014-06-02 16:05:41

标签: eclipse hadoop giraph

我试图从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来获取上述包?

1 个答案:

答案 0 :(得分:0)

您是否正在运行正确版本的Giraph的代码?我认为你提到的导入是针对1.0.0之前的版本,如果你为一个较新的版本包含一个罐子,它就不会找到它们。