| 31 | |
| 32 | |
| 33 | = NutchBean 驗證 索引庫正確性的方法 = |
| 34 | |
| 35 | 原文僅提 |
| 36 | |
| 37 | {{{ |
| 38 | Simplest way to verify the integrity of your crawl is to launch NutchBean from command line: |
| 39 | |
| 40 | bin/nutch org.apache.nutch.searcher.NutchBean apache |
| 41 | |
| 42 | where apache is the search term (note that NutchBean will only search pages in the crawl directory, so if you named the crawl directory something else, NutchBean will not find any results). After you have verified that the above command returns results you can proceed to setting up the web interface. |
| 43 | |
| 44 | }}} |
| 45 | |
| 46 | 但訣竅在於,執行 |
| 47 | {{{ |
| 48 | bin/nutch org.apache.nutch.searcher.NutchBean [搜尋字串] [hdfs上的索引目錄] |
| 49 | }}] |
| 50 | |
| 51 | 因此執行這個程式時,hadoop 四個身份需已經啟動,並且要搜尋的索引庫已經放在 hdfs 上,才搜的到東西 |
| 52 | |
| 53 | {{{ |
| 54 | waue@u1004:/opt/tomcat/webapps/0311test$ /opt/nutch/bin/hadoop dfs -ls |
| 55 | |
| 56 | Found 14 items |
| 57 | drwxr-xr-x - waue supergroup 0 2010-11-24 19:26 /user/waue/crawlbek |
| 58 | drwxr-xr-x - waue supergroup 0 2010-11-25 09:47 /user/waue/ftp1 |
| 59 | drwxr-xr-x - waue supergroup 0 2010-11-26 15:55 /user/waue/t-hfil2 |
| 60 | drwxr-xr-x - waue supergroup 0 2010-11-25 18:01 /user/waue/t-hfilter |
| 61 | drwxr-xr-x - waue supergroup 0 2010-11-26 16:13 /user/waue/url |
| 62 | |
| 63 | waue@u1004:/opt/tomcat/webapps/0311test$ /opt/nutch/bin/nutch org.apache.nutch.searcher.NutchBean nchc crawlbek |
| 64 | |
| 65 | Total hits: 249 |
| 66 | 0 20101124184700/http://www.nchc.org.tw/en/ |
| 67 | ... Reserved|Resolution 1024 * 768| webmaster@nchc.narl.org.tw Latest Update ... th ~ December 10 th , 2010@ NCHC, Taiwan More Southeast Asia International ... |
| 68 | 1 20101124184929/http://www.nchc.org.tw/en/e_paper/ |
| 69 | ... to Cloud Computing Issue 19:NCHC Establishes a Cloud ... HPC Research - The NCHC’s All New GPU Cluster ... |
| 70 | 2 20101124184929/http://www.nchc.org.tw/en/about/publication/message/2010_spring.php |
| 71 | ... Collaborative Research Applied Sciences ::: About NCHC Home » About NCHC » Publications » NCHC Newsletter » NCHC Newsletter Spring, 2010, Issue NO ... |
| 72 | 3 20101124184929/http://www.nchc.org.tw/en/about/ |
| 73 | ... Collaborative Research Applied Sciences ::: About NCHC Home » About NCHC With Taiwan's most bountiful ... Reserved|Resolution 1024 * 768| webmaster@ |
| 74 | 4 20101124184929/http://www.nchc.org.tw/en/about/job.php |
| 75 | ... Collaborative Research Applied Sciences ::: About NCHC Home » About NCHC » Jobs at NCHC If you would like to ... |
| 76 | 5 20101124185839/http://www.nchc.org.tw/en/about/publication/message/ |
| 77 | ... Collaborative Research Applied Sciences ::: About NCHC Home » About NCHC » Publications » NCHC Newsletter NCHC Newsletter 2009 Spring 2009Summer 2009 ... |
| 78 | 6 20101124184929/http://bioinfo.nchc.org.tw/ |
| 79 | Bioinformatics Knowledge Database 國網中心生物知識庫與生物計算服務 ... |
| 80 | 7 20101124184929/http://ecogrid.nchc.org.tw/ |
| 81 | ... were picked as show cases. NCHC Ecogrid team provided the ... into database in NCHC, consumers can query by a ... |
| 82 | 8 20101124184929/http://www.nchc.org.tw/en/research/list.php |
| 83 | ... Director History Publications Jobs at NCHC Driving Directions HPC Services Educational ... Wed, November 24, 2010 ::: About NCHC Areas of Service ... |
| 84 | 9 20101124184929/http://accta.nchc.org.tw/en/ |
| 85 | ACCTA | Login | Home | 中文 | To protect your account and password security, please click ... |
| 86 | |
| 87 | }}} |