Some Hints for Nutch


作者:Fenng
出处:http://www.dbanotes.net
日期:February 19, 2005

« 盛大收购新浪股权:变数横生? | Blog首页 | Tom 的经验谈 »


好久没关注Nutch了,看邮件列表,学到了几招关于 Nutch 的小技巧.

  • 验证regex-urlfilter是否正常(by Michael Nebel):
    If you want to know, if your regex-urlfilter works as expectet, you can 
    check it with the command:
    
    	cat FILE-WITH-URLS | nutch net/nutch/net/RegexURLFilter
    
    or by calling "nutch net/nutch/net/RegexURLFilter" and entering the URL 
    by hand.
    
    Everyline line beginning with a "+" ist accepted - a line with a "-" is 
    accepted. For example:
    
       $ echo "http://www.nutch.org" | nutch net/nutch/net/RegexURLFilter
       run with heapsize 256
       -Xmx256m
       050202 173520 loadingfile:/home/nutch/nutch-0.7/conf/nutch-default.xml
       050202 173520 loading file:/home/nutch/nutch-0.7/conf/nutch-site.xml
       050202 173520 found resource regex-urlfilter.txt at
       file:/home/nutch/nutch-0.7/conf/regex-urlfilter.txt
    
    

Posted by Fenng at February 19, 2005 02:49 PM
Last updated at 06:17 PM on August 20, 2005


相关文章

Trackback Pings

TrackBack URL for this entry:
http://www.dbanotes.net/mt/mt-tb.cgi/133

Comments


Post a comment



Hint: 为避免您收到垃圾邮件,请尽量不用使用真实的邮件地址.


Remember Me?