【发布时间】:2019-03-27 04:51:29
【问题描述】:
我尝试使用 ParallelALSFactorizationJob,但它在此处崩溃:
Exception in thread "main" java.lang.NullPointerException
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:445)
at org.apache.hadoop.util.Shell.run(Shell.java:418)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:650)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:739)
命令行帮助提到使用文件系统,但它似乎需要hadoop。如何在 Windows 上运行它,mahout.cmd 文件已损坏:
"===============DEPRECATION WARNING==============="
"This script is no longer supported for new drivers as of Mahout 0.10.0"
"Mahout's bash script is supported and if someone wants to contribute a fix for this"
"it would be appreciated."
这可能吗(ALS + Windows - hadoop)?
【问题讨论】:
-
您可以将 Mahout jars(mahout-core、mahout-math 等)导入您的 Java 应用程序并在本地运行。有一个很好的教程叫做“Mahout in action”,它描述了各种 Mahout 类的用法