我试图用nutch抓取网站并收到此错误:
java.net.MalformedURLException: no protocol:
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1265)
at org.apache.nutch.crawl.Injector.inject(Injector.java:296)
at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
答案 0 :(得分:0)
检查您的种子列表。运行注射器作业时发生此错误。可能是由于你的种子清单。您的种子网址应如下所示: http://www.example.com 。您必须将协议添加为“http //”。