【发布时间】:2013-07-11 14:58:33
【问题描述】:
我正在尝试使用 .\bin\hadoop jar path_to_mahout_jar 等运行 Mahout
仅当输入是本地文件时才有效。当我尝试使用 Hadoop 文件系统中的文件时,会出现以下错误:
Exception in thread "main" java.io.FileNotFoundException: input (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at org.apache.mahout.classifier.sgd.TrainLogistic.open(TrainLogistic.java:316)
at org.apache.mahout.classifier.sgd.TrainLogistic.mainToOutput(TrainLogistic.java:75)
at org.apache.mahout.classifier.sgd.TrainLogistic.main(TrainLogistic.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
但是,当我查看 HDFS 时,我可以看到该文件。
【问题讨论】:
-
你如何指定输入?它没有显示。试试
hdfs://URI -
我指定了 hdfs://54.186.225.72/data 但它仍然无法使用“hdfs:/”而不是“hdfs://”抛出错误 hdfs:/54.186.225.72/data跨度>