Changes between Version 14 and Version 15 of waue/2009/0512


Ignore:
Timestamp:
May 14, 2009, 8:47:29 AM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/0512

    v14 v15  
    151151}}}
    152152
    153  *
     153 * nutch.postrm
     154
     155{{{
     156#!/bin/sh
     157
     158echo "$1"
     159
     160if [ "$1" != remove ]
     161then
     162  exit 0
     163fi
     164
     165setup_hdfsadm_user() {
     166  if ! getent passwd hdfsadm >/dev/null; then
     167    echo "no account found: 'hdfsadm'."
     168  else
     169    userdel hdfsadm
     170    rm -rf /home/hdfsadm
     171    rm -rf /opt/nutch
     172    rm -rf /tmp/hadoop*
     173    rm -rf /tmp/hsperfdata*
     174  fi
     175}
     176
     177setup_hdfsadm_user
     178}}}
     179
     180 * nutch.postinst
     181
     182{{{
     183#!/bin/sh
     184
     185echo "$1"
     186
     187if [ "$1" != configure ]
     188then
     189  exit 0
     190fi
     191
     192show_message() {
     193  echo "You can quickly start by following ways [in /opt/nutch/ with root privilege]:"
     194  echo "(1) Modify the urls/urls.txt file with indicate urls, one site one line."
     195  echo "(2) Use this instruction \"bin/nutch crawl urls -dir search -depth 4 -topN 50\" to crawl web"
     196  echo "(3) Type \" tomcat/bin/startup.sh \" and use browser to check the result in http://localhost:8080/"
     197  echo "Enjoy !"
     198}
     199show_message
     200}}}
    154201
    155202 == 5. 在 nutch-1.0 資料夾內編輯Makefile檔 ==