bin/nutch crawl log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: /usr/nutc

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /usr/nutch1.4/runtime/local/logs/hadoop.log (No such file or directory)


是因为log4j.properties 和其他的应用程序重名的原因。


先用sudo find / -name log4j.properties 查找

然后在看看错误显示的路径:/usr/nutch1.4/runtime/local/logs/hadoop.log (No such file or directory)


进入/usr/nutch1.4/runtime/local/conf中 ,对log4j.properties换个名字即可:

sudo mv log4j.properties log.properties

你可能感兴趣的:(Nutch)