如下为运行后的异常:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/math3/primes/Primes
at org.apache.mahout.common.RandomUtils.nextTwinPrime(RandomUtils.java:93)
at org.apache.mahout.cf.taste.impl.common.FastByIDMap.growAndRehash(FastByIDMap.java:283)
at org.apache.mahout.cf.taste.impl.common.FastByIDMap.put(FastByIDMap.java:184)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLine(FileDataModel.java:530)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFile(FileDataModel.java:363)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(FileDataModel.java:259)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:231)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.(FileDataModel.java:221)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.(FileDataModel.java:169)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.(FileDataModel.java:149)
at com.elan.compute.UserCF.main(UserCF.java:36)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.math3.primes.Primes
at java.net.URLClassLoader$1.run(URLClassLoader.java:370)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 11 more
Caused by: java.util.zip.ZipException: invalid distance too far back
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
at sun.misc.Resource.getBytes(Resource.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
... 17 more
使用Mahout用户推荐协同过滤算法(UserCF)
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
悬赏问题
- ¥15 MacOS 80端口外网无法访问
- ¥50 js逆转反解密-会的来
- ¥15 wrodpress如何调取数据库并展示
- ¥15 python梯形积分与GPS测得位移使用卡尔曼滤波融合问题
- ¥15 匈牙利算法分割求损失问题
- ¥30 ABAQUS 实体单元如何在分析步中分步多次施加绕某轴的运动?
- ¥15 docker部署redis集群,springboot启动报错DefaultClusterTopologyRefresh,而且第一个节点的IP也变了
- ¥15 关于延迟常微分方程DDE的分岔图
- ¥15 putimage函数输出错误
- ¥15 进行刷新动态页面和点击进入一个动态,会包含在一个网络五元组会话内吗