i want to buil a recommender system using apache mahout I created java class but i have a error can some one help me please
the error
run: [INFO ] 2017-03-24 22:11:15,995 -- Creating FileDataModel for file C:\ml-latest-small\dat.csv Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.(FileDataModel.java:178) at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.(FileDataModel.java:148) at javaapplication15.JavaApplication15.main(JavaApplication15.java:45) Java Result: 1
public static void main(String[] args) throws IOException, TasteException {
DataModel model = new FileDataModel(new File("C:/ml-latest-small/dat.csv"));
UserSimilarity similarity = new TanimotoCoefficientSimilarity(model);
UserNeighborhood neighborhood = new ThresholdUserNeighborhood(0.1, similarity, model);
UserBasedRecommender recommender = new GenericUserBasedRecommender(model, neighborhood, similarity);
List<RecommendedItem> recommendations = recommender.recommend(2, 3);
for (RecommendedItem recommendation : recommendations) { System.out.println(recommendation);