How to run nutch server on distributed environment

╄→гoц情女王★ 提交于 2019-12-21 21:28:00

问题


I have tested running of nutch in server mode by starting it using bin/nutch startserver command locally. Now I wonder whether I can start nutch in server mode on top of a hadoop cluster(in distributed environment) and submit crawl requests to server using nutch REST api ? Please help.


回答1:


From further research I've got nutch server working on distributed mode.

Steps :-

  1. Assume hadoop is configured in all slave nodes. Then setup nutch in all nodes. This can help : http://wiki.apache.org/nutch/NutchHadoopTutorial
  2. On your namenode, cd $NUTCH_HOME/runtime/deploy
  3. bin/nutch startserver -port <port> -host <host> Note :Port and host are optional.
  4. Then you can submit requests from nutch using REST. The requests you submit will be accepted by nutch server started on step 3.

Happy crawling :)



来源:https://stackoverflow.com/questions/39761712/how-to-run-nutch-server-on-distributed-environment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!