20新闻组示例Mahout local,无摘要&;由于log4j警告导致的混乱矩阵?

20新闻组示例Mahout local,无摘要&;由于log4j警告导致的混乱矩阵?,log4j,classification,mahout,Log4j,Classification,Mahout,遵循教程 ,除了上一个测试步骤没有显示任何摘要或混淆矩阵外,其他一切似乎都正常工作,而在我可以看到的文件夹中,它已生成文件:.\u SUCCESS.crc、.part-m-00000.crc、\u SUCCESS&part-m-00000 我也犯了类似的错误,比如没有答案的帖子。很高兴知道这是否是由于log4g警告造成的?如果是(看起来最有可能),有关于如何解决此问题的详细解决方案吗?在何处添加此属性文件,它应该是什么样子等 我是一个新的Mahout用户,详细信息非常感谢。提前谢谢 $

遵循教程 ,除了上一个测试步骤没有显示任何摘要或混淆矩阵外,其他一切似乎都正常工作,而在我可以看到的文件夹中,它已生成文件:.\u SUCCESS.crc、.part-m-00000.crc、\u SUCCESS&part-m-00000

我也犯了类似的错误,比如没有答案的帖子。很高兴知道这是否是由于log4g警告造成的?如果是(看起来最有可能),有关于如何解决此问题的详细解决方案吗?在何处添加此属性文件,它应该是什么样子等

我是一个新的Mahout用户,详细信息非常感谢。提前谢谢

    $ bin/mahout testnb -i /tmp/mahout-work/20news-test-vectors -m /tmp/mahout-work/model -l /tmp/mahout-work/labelindex -ow -o /tmp/mahout-work/20news-testing-result -c

    MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
    hadoop binary is not in PATH,HADOOP_HOME/bin,HADOOP_PREFIX/bin, running locally
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/D:/mahout_src/examples/target/mahout-examples-1.0-SNAPSHOT-job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/D:/mahout_src/examples/target/dependency/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
    log4j:WARN No appenders could be found for logger (org.apache.mahout.driver.MahoutDriver).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

刚刚找到了解决方案:创建属性文件并将文件放在mahout/src/conf下(mahout在mahout/conf下有一个log4j.properties,这不是正确的路径,而且appender的设置也不正确)。希望这能帮助其他有同样问题的人。