hadoop集群正常启动
运行如下命令
[root@CentOS641 deploy]# bin/crawl /nutch_workspace/urls/urls /nutch_workspace/data http://192.168.159.120:8983/solr 10
后执行,到fetch开始报错,日志如下:
16/05/28 20:15:52 WARN fetcher.Fetcher: Fetcher: Your 'http.agent.name' value should be listed first in 'http.robots.agents' property.
16/05/28 20:15:52 INFO fetcher.Fetcher: Fetcher: starting at 2016-05-28 20:15:52
16/05/28 20:15:52 INFO fetcher.Fetcher: Fetcher: segment: /nutch_workspace/data/segments
16/05/28 20:15:52 INFO fetcher.Fetcher: Fetcher Timelimit set for : 1464502552307
16/05/28 20:15:56 INFO client.RMProxy: Connecting to ResourceManager at CentOS641/192.168.159.120:8032
16/05/28 20:15:57 INFO client.RMProxy: Connecting to ResourceManager at CentOS641/192.168.159.120:8032
16/05/28 20:15:59 INFO mapreduce.JobSubmitter: Cleaning up the staging area /tmp/hadoop-yarn/staging/root/.staging/job_1464324668489_0044
16/05/28 20:15:59 ERROR security.UserGroupInformation: PriviledgedActionException as:root (auth:SIMPLE) cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://CentOS641:8020/nutch_workspace/data/segments/crawl_generate
16/05/28 20:15:59 ERROR security.UserGroupInformation: PriviledgedActionException as:root (auth:SIMPLE) cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://CentOS641:8020/nutch_workspace/data/segments/crawl_generate
16/05/28 20:15:59 ERROR fetcher.Fetcher: Fetcher: org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://CentOS641:8020/nutch_workspace/data/segments/crawl_generate
at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:251)
at org.apache.hadoop.mapred.SequenceFileInputFormat.listStatus(SequenceFileInputFormat.java:45)
at org.apache.nutch.fetcher.Fetcher$InputFormat.getSplits(Fetcher.java:106)
at org.apache.hadoop.mapreduce.JobSubmitter.writeOldSplits(JobSubmitter.java:518)
at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:510)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:392)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1268)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1265)
at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:562)
at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:557)
at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:548)
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:833)
at org.apache.nutch.fetcher.Fetcher.fetch(Fetcher.java:1340)
at org.apache.nutch.fetcher.Fetcher.run(Fetcher.java:1376)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.nutch.fetcher.Fetcher.main(Fetcher.java:1349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)