如何查看Nutch命令

比如要找readdb的使用方法

可以用文本方式打开bin/nutch.sh

然后,找到相应的这么一句:

elif [ "$COMMAND" = "readdb" ] ; then
  CLASS=org.apache.nutch.crawl.CrawlDbReader


这样子就能知道方法对应的类。

然后,在Elcipse中导入nutch的整个项目包括源码。在其中,找到需要的类,然后,作为java application来运行。

可以得到以下console内容:

Usage: CrawlDbReader <crawldb> (-stats | -dump <out_dir> | -topN <nnnn> <out_dir> [<min>] | -url <url>)
 <crawldb> directory name where crawldb is located
 -stats [-sort]  print overall statistics to System.out
  [-sort] list status sorted by host
 -dump <out_dir> [-format normal|csv ] dump the whole db to a text file in <out_dir>
  [-format csv] dump in Csv format
  [-format normal] dump in standard format (default option)
 -url <url> print information on <url> to System.out
 -topN <nnnn> <out_dir> [<min>] dump top <nnnn> urls sorted by score to <out_dir>
  [<min>] skip records with scores below this value.
   This can significantly improve performance.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值