首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在不关闭共享磁盘的情况下避免抓取它?

如何在不关闭共享磁盘的情况下避免抓取它?
EN

Stack Overflow用户
提问于 2013-10-16 01:40:40
回答 1查看 37关注 0票数 0

我正在使用Nutch。我打算抓取共享磁盘,而不是互联网网站。

我担心爬行它会使磁盘变得非常慢。如何在不关闭共享磁盘的情况下避免抓取它?

EN

回答 1

Stack Overflow用户

发布于 2013-10-17 06:23:13

您可以在conf/nutch-site.xml中设置线程数和请求之间的等待时间。

尝试覆盖这些属性,并将它们设置为您喜欢的值:

代码语言:javascript
复制
<property>
  <name>fetcher.threads.fetch</name>
  <value>10</value>
  <description>The number of FetcherThreads the fetcher should use.
  This is also determines the maximum number of requests that are
  made at once (each FetcherThread handles one connection). The total
  number of threads running in distributed mode will be the number of
  fetcher threads * number of nodes as fetcher has one map task per node.
  </description>
</property>

<property>
  <name>fetcher.threads.per.queue</name>
  <value>1</value>
  <description>This number is the maximum number of threads that
    should be allowed to access a queue at one time.
   </description>
</property>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19387571

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档