我尝试使用运行Mahout中。\ BIN \ Hadoop的罐子path_to_mahout_jar等运行Mahout的使用Hadoop FileNotFoundError
它只有当输入是本地文件的工作。当我尝试使用一个文件从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:/54.186.225.72/data与“hdfs:/”而不是“hdfs://” –