简体   繁体   中英

Customising nutch

I am using cygwin to run nutch with the command

bin/nutch crawl urls -dir crawl -depth 3 -topN 50

Now, I am trying to make changes to crawl.java, but when I run again, the changes are not getting reflected in the output. Infact, even if main parts of the code are REMOVED, the command runs without errors and produces the same output.

How to make the changes in code get reflected in the output? I am a beginner, so kindly help out.

Okay, for beginners :

Download apache ant and install it in the home folder of cygwin (if that's what you are using to run nutch)

Once you make changes to your code, execute the following commands in cygwin , after cd-ing to the project directory.

1) ant clean

2) ant

This will clean and build the project. Now run it, the changes in your code will be reflected.

将“ out”文件夹的内容复制到“ build”文件夹中!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM